public static enum XmlSet.Conjunction extends Enum<XmlSet.Conjunction>
XmlSet
. Such conjunction is an operation that
describes how a the results of multiple XmlSelector
s are combined.Enum Constant and Description |
---|
INTERSECTION
This is the conjunction used to combine the results of multiple
XmlSelector s with a logical AND . |
UNION
This is the conjunction used to combine the results of multiple
XmlSelector s with a logical OR . |
Modifier and Type | Method and Description |
---|---|
static XmlSet.Conjunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XmlSet.Conjunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmlSet.Conjunction UNION
XmlSelector
s with a logical OR
.
Each result that is accepted by any of the XmlSelector
s is added to the result of the according
XmlSet
. XmlSelector
A
accepts the XML nodes n1
and n2
with the
XmlSelector
B
accepts n2
and n3
then the UNION
of A
and
B
will accept n1
, n2
and n3
.public static final XmlSet.Conjunction INTERSECTION
XmlSelector
s with a logical AND
.
Only results that are accepted by all of the XmlSelector
s are added to the result of the according
XmlSet
. XmlSelector
A
accepts the XML nodes n1
and n2
with the
XmlSelector
B
accepts n2
and n3
then the INTERSECTION
of A
and
B
will only accept n2
.public static XmlSet.Conjunction[] values()
for (XmlSet.Conjunction c : XmlSet.Conjunction.values()) System.out.println(c);
public static XmlSet.Conjunction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2001–2016 mmm-Team. All rights reserved.