|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.workplace.wcm.api.query.CompoundSelector com.ibm.workplace.wcm.api.query.Association
public abstract class Association
Association
s are Selector
s which associate other Selectors with an Operation
Example use of Association
s Conjunction and Disjunction
Query query = queryService.createQuery(Content.class); Disjunction or = new Disjunction(); or.add(Selectors.nameLike("news%")); Conjunction and = new Conjunction(); and.add(Selectors.nameLike("article%")); and.add(ProfileSelectors.keywordsContain("news")); or.add(and); query.addSelector(or);
Field Summary |
---|
Fields inherited from interface com.ibm.workplace.wcm.api.query.Selector |
---|
NULL_SELECTOR |
Constructor Summary | |
---|---|
protected |
Association()
Constructor for jax-b |
|
Association(java.util.Collection<Selector> conditions,
Operator operator)
Constructor |
|
Association(Operator operator)
Constructor |
Method Summary | |
---|---|
void |
add(java.util.Collection<Selector> selectors)
Adds selectors |
void |
add(Selector... selectors)
Adds a list of selectors |
void |
add(Selector selector)
Adds a selector |
Association |
createAssociation(Operator operator)
Create a association |
Operator |
getOperator()
Gets the operator |
java.util.List<Selector> |
getSelectors()
|
java.lang.String |
toString()
|
Methods inherited from class com.ibm.workplace.wcm.api.query.CompoundSelector |
---|
getElements, hasElements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Association()
public Association(Operator operator)
operator
- public Association(java.util.Collection<Selector> conditions, Operator operator)
conditions
- operator
- Method Detail |
---|
public void add(Selector selector)
selector
- the selector to addpublic void add(Selector... selectors)
selectors
- the selectors to addpublic void add(java.util.Collection<Selector> selectors)
selectors
- the selectors to addpublic java.util.List<Selector> getSelectors()
getSelectors
in class CompoundSelector
public java.lang.String toString()
toString
in class java.lang.Object
public Operator getOperator()
public Association createAssociation(Operator operator)
operator
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |