|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.joox.JOOX
public final class JOOX
| Constructor Summary | |
|---|---|
JOOX()
|
|
| Method Summary | |
|---|---|
static Filter |
all()
A filter that always returns true |
static Filter |
and(Filter... filters)
Combine filters |
static Mapper<String> |
attributes(String attributeName)
Create a mapper that returns all attributes with a given name |
static DocumentBuilder |
builder()
Get a document builder |
static Content |
content(String value)
Get a constant content that returns the same value for all
elements. |
static Filter |
even()
A filter that returns true on all even indexes (starting with 0!) |
static Mapper<String> |
ids()
Create a mapper that returns all id attributes |
static Filter |
ids(String... ids)
Create a filter matching id attributes |
static Iterable<Element> |
iterable(NodeList elements)
Wrap a NodeList into an Iterable |
static Iterator<Element> |
iterator(NodeList elements)
Wrap a NodeList into an Iterator |
static X |
joox()
Create an empty jOOX X element set |
static X |
joox(Document document)
Wrap a DOM document in a jOOX X element set |
static X |
joox(Element element)
Wrap a DOM element in a jOOX X element set |
static List<Element> |
list(NodeList elements)
Wrap a NodeList into an List |
static Filter |
none()
A filter that always returns false |
static Filter |
not(Filter filter)
Inverse a filter |
static Filter |
odd()
A filter that returns true on all odd indexes (starting with 0!) |
static Filter |
or(Filter... filters)
Combine filters |
static Filter |
selector(String selector)
A filter that returns all elements matched by a given selector. |
static Filter |
tag(String tagName)
A filter that returns all elements with a given tag name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JOOX()
| Method Detail |
|---|
public static X joox()
X element set
public static X joox(Document document)
X element set
public static X joox(Element element)
X element set
public static DocumentBuilder builder()
public static Filter none()
public static Filter all()
public static Filter even()
public static Filter odd()
public static Filter selector(String selector)
As of jOOX 0.9.0, this is the same as calling tag(String). More
sophisticated selector expressions will be added in the future.
public static Filter tag(String tagName)
public static Filter and(Filter... filters)
public static Filter or(Filter... filters)
public static Filter not(Filter filter)
public static Filter ids(String... ids)
public static Content content(String value)
value for all
elements.
public static Mapper<String> ids()
id attributes
public static Mapper<String> attributes(String attributeName)
public static Iterable<Element> iterable(NodeList elements)
NodeList into an Iterable
public static Iterator<Element> iterator(NodeList elements)
NodeList into an Iterator
public static List<Element> list(NodeList elements)
NodeList into an List
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||