|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.contentmanagement.contentmanager.stubs.model.predicates.Predicates
public class Predicates
| Field Summary | |
|---|---|
static java.lang.String |
any
A wildcard for labels. |
static boolean |
C
A marker for condition edges. |
| Constructor Summary | |
|---|---|
Predicates()
|
|
| Method Summary | |
|---|---|
static AnyPredicate |
any()
The AnyPredicate predicate. |
static EdgePredicate |
atleast(javax.xml.namespace.QName l,
Predicate np)
Returns an AtLeast predicate for a given label and a given Predicate. |
static EdgePredicate |
atleast(java.lang.String l,
Predicate np)
Returns an AtLeast predicate for a given label and a given Predicate. |
static EdgePredicate |
atleast(java.lang.String ns,
java.lang.String l,
Predicate np)
Returns an AtLeast predicate for a given label and a given Predicate. |
static Bool |
bool()
Returns an unconstrained Bool predicate. |
static Bool |
bool(Constraint<? super java.lang.Boolean> c)
Returns a Bool predicate with a given constraint. |
static Calendar |
calendar()
Returns an unconstrained Calendar predicate. |
static Calendar |
calendar(Constraint<? super java.util.Calendar> c)
Returns a Calendar predicate with a given constraint. |
static EdgePredicate |
clone(EdgePredicate predicate)
Clone an edge predicate. |
static Predicate |
clone(Predicate predicate)
Clone a predicate. |
static EdgePredicate |
cond(EdgePredicate ep)
Marks an EdgePredicate as a condition. |
static TreePredicate |
cut(TreePredicate tp)
Returns a TreePredicate that has the same EdgePredicates as another TreePredicate but removes all
the edges of matching node under pruning. |
static Date |
date()
Returns an unconstrained Date predicate. |
static Date |
date(Constraint<? super java.util.Date> c)
Returns a Date predicate with a given constraint. |
static javax.xml.bind.Marshaller |
getMarshaller()
|
static javax.xml.bind.Unmarshaller |
getUnMarshaller()
|
static TreePredicate |
hasLabelPath(javax.xml.namespace.QName... labels)
Returns a tree predicate for the existence of a given path of one or more edge labels. |
static TreePredicate |
hasLabelPath(java.lang.String... labels)
Returns a tree predicate for the existence of a given path of one or more edge labels. |
static TreePredicate |
hasPath(java.lang.String... ids)
Returns a tree predicate for the existence of a given path of one or more node identifiers. |
static TreePredicate |
id(LeafPredicate<?,?> idp,
TreePredicate p)
Adds a LeafPredicate on the identifier of nodes described by a TreePredicate. |
static TreePredicate |
id(java.lang.String identifier,
TreePredicate p)
Adds a string equality predicate on the identifier of nodes described by a TreePredicate. |
static EdgePredicate |
many(javax.xml.namespace.QName l,
Predicate np)
Returns an Many predicate for a given label and a given Predicate. |
static EdgePredicate |
many(java.lang.String l,
Predicate np)
Returns an Many predicate for a given label and a given Predicate. |
static EdgePredicate |
many(java.lang.String ns,
java.lang.String l,
Predicate np)
Returns an Many predicate for a given label and a given Predicate. |
static Num |
num()
Returns an unconstrained Num predicate. |
static Num |
num(Constraint<? super java.lang.Double> c)
Returns a Num predicate with a given constraint. |
static EdgePredicate |
one(javax.xml.namespace.QName l,
Predicate predicate)
Returns an One predicate for a given label and a given Predicate. |
static EdgePredicate |
one(java.lang.String l,
Predicate predicate)
Returns an One predicate for a given label and a given Predicate. |
static EdgePredicate |
one(java.lang.String ns,
java.lang.String l,
Predicate predicate)
Returns an One predicate for a given label and a given Predicate. |
static EdgePredicate |
only(javax.xml.namespace.QName l,
Predicate np)
Returns an Only predicate for a given label and a given Predicate. |
static EdgePredicate |
only(java.lang.String l,
Predicate np)
Returns an Only predicate for a given label and a given Predicate. |
static EdgePredicate |
only(java.lang.String ns,
java.lang.String l,
Predicate np)
Returns an Only predicate for a given label and a given Predicate. |
static EdgePredicate |
opt(javax.xml.namespace.QName l,
Predicate np)
Returns an Opt predicate for a given label and a given Predicate. |
static EdgePredicate |
opt(java.lang.String l,
Predicate np)
Returns an Opt predicate for a given label and a given Predicate. |
static EdgePredicate |
opt(java.lang.String ns,
java.lang.String l,
Predicate np)
Returns an Opt predicate for a given label and a given Predicate. |
static EdgePredicate |
tail()
Returns a predicate that matches all the children of a node not previously matched. |
static Text |
text()
Returns an unconstrained Text predicate. |
static Text |
text(Constraint<? super java.lang.String> c)
Returns a Text predicate with a given constraint. |
static TreePredicate |
tree(EdgePredicate... eps)
Returns a tree predicate for one or more EdgePredicates |
static RID |
uri()
Returns an unconstrained RID predicate. |
static RID |
uri(Constraint<? super java.net.URI> c)
Returns a RID predicate with a given constraint. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String any
public static final boolean C
| Constructor Detail |
|---|
public Predicates()
| Method Detail |
|---|
public static javax.xml.bind.Marshaller getMarshaller()
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public static javax.xml.bind.Unmarshaller getUnMarshaller()
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic static final AnyPredicate any()
AnyPredicate predicate.
public static final Predicate clone(Predicate predicate)
throws java.lang.Exception
predicate - the predicate to clone.
java.lang.Exception - if the predicate could not be cloned.
public static final EdgePredicate clone(EdgePredicate predicate)
throws java.lang.Exception
predicate - the edge predicate to clone.
java.lang.Exception - if the edge predicate could not be cloned.public static final TreePredicate tree(EdgePredicate... eps)
EdgePredicates
the - edge predicates.
public static final TreePredicate hasPath(java.lang.String... ids)
throws java.lang.IllegalArgumentException
ids - the identifiers.
java.lang.IllegalArgumentException - if invoked with null or no input.
public static final TreePredicate hasLabelPath(java.lang.String... labels)
throws java.lang.IllegalArgumentException
labels - the local names of the labels.
java.lang.IllegalArgumentException - if invoked with null or no input.
public static final TreePredicate hasLabelPath(javax.xml.namespace.QName... labels)
throws java.lang.IllegalArgumentException
labels - the labels.
java.lang.IllegalArgumentException - if invoked with null or no input.public static EdgePredicate cond(EdgePredicate ep)
EdgePredicate as a condition.
ep - the predicate.
public static final EdgePredicate one(javax.xml.namespace.QName l,
Predicate predicate)
One predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.(optional) - if true marks the predicate a condition predicate.
One predicate.
public static final EdgePredicate one(java.lang.String l,
Predicate predicate)
One predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.(optional) - if true marks the predicate a condition predicate.
One predicate.
public static final TreePredicate id(LeafPredicate<?,?> idp,
TreePredicate p)
LeafPredicate on the identifier of nodes described by a TreePredicate.
idp - the leaf predicate.p - the tree predicate.
public static final TreePredicate id(java.lang.String identifier,
TreePredicate p)
TreePredicate.
idp - the string to compare with node identifiers.p - the tree predicate.
public static final EdgePredicate one(java.lang.String ns,
java.lang.String l,
Predicate predicate)
One predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.
One predicate.
public static final EdgePredicate opt(javax.xml.namespace.QName l,
Predicate np)
Opt predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.
Opt predicate.
public static final EdgePredicate opt(java.lang.String l,
Predicate np)
Opt predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.
Opt predicate.
public static final EdgePredicate opt(java.lang.String ns,
java.lang.String l,
Predicate np)
Opt predicate for a given label and a given Predicate.
ns - the label's namespace.l - the label.predicate - the predicate.
Opt predicate.
public static final EdgePredicate atleast(javax.xml.namespace.QName l,
Predicate np)
AtLeast predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.
AtLeast predicate.
public static final EdgePredicate atleast(java.lang.String l,
Predicate np)
AtLeast predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.
AtLeast predicate.
public static final EdgePredicate atleast(java.lang.String ns,
java.lang.String l,
Predicate np)
AtLeast predicate for a given label and a given Predicate.
the - label's namespace.l - the label.predicate - the predicate.
AtLeast predicate.
public static final EdgePredicate many(javax.xml.namespace.QName l,
Predicate np)
Many predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.
Many predicate.
public static final EdgePredicate many(java.lang.String l,
Predicate np)
Many predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.
Many predicate.
public static final EdgePredicate many(java.lang.String ns,
java.lang.String l,
Predicate np)
Many predicate for a given label and a given Predicate.
the - label's namespace.l - the label.predicate - the predicate.
Many predicate.
public static final EdgePredicate only(javax.xml.namespace.QName l,
Predicate np)
Only predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.
Only predicate.
public static final EdgePredicate only(java.lang.String l,
Predicate np)
Only predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.
Only predicate.
public static final EdgePredicate only(java.lang.String ns,
java.lang.String l,
Predicate np)
Only predicate for a given label and a given Predicate.
l - the label.predicate - the predicate.
Only predicate.public static EdgePredicate tail()
public static TreePredicate cut(TreePredicate tp)
TreePredicate that has the same EdgePredicates as another TreePredicate but removes all
the edges of matching node under pruning.
tp - the input predicate.
public static Text text(Constraint<? super java.lang.String> c)
Text predicate with a given constraint.
c - the constraint.public static Text text()
Text predicate.
public static Num num(Constraint<? super java.lang.Double> c)
Num predicate with a given constraint.
c - the constraint.public static Num num()
Num predicate.
public static Bool bool(Constraint<? super java.lang.Boolean> c)
Bool predicate with a given constraint.
c - the constraint.public static Bool bool()
Bool predicate.
public static Date date(Constraint<? super java.util.Date> c)
Date predicate with a given constraint.
c - the constraint.public static Date date()
Date predicate.
public static RID uri(Constraint<? super java.net.URI> c)
RID predicate with a given constraint.
c - the constraint.public static RID uri()
RID predicate.
public static Calendar calendar(Constraint<? super java.util.Calendar> c)
Calendar predicate with a given constraint.
c - the constraint.public static Calendar calendar()
Calendar predicate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||