|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.objectstore.query.Constraint
org.intermine.objectstore.query.ContainsConstraint
public class ContainsConstraint
Constrain whether a QueryClass is member of a QueryReference or not. QueryReference can refer to an object or a collection, test whether QueryClass is a member of the collection or an instance of the object
| Field Summary | |
|---|---|
protected QueryClass |
cls
|
protected InterMineObject |
obj
|
protected QueryReference |
ref
|
static java.util.List<ConstraintOp> |
VALID_OPS
List of possible operations |
static java.util.List<ConstraintOp> |
VALID_OPS_NULL
List of possible null operations |
| Fields inherited from class org.intermine.objectstore.query.Constraint |
|---|
op |
| Constructor Summary | |
|---|---|
ContainsConstraint(QueryObjectReference ref,
ConstraintOp op)
Constructor for ContainsConstraint. |
|
ContainsConstraint(QueryReference ref,
ConstraintOp op,
InterMineObject obj)
Constructor for ContainsConstraint. |
|
ContainsConstraint(QueryReference ref,
ConstraintOp op,
QueryClass cls)
Constructor for ContainsConstraint. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj1)
Test whether two ContainsConstraints are equal, overrides Object.equals() |
InterMineObject |
getObject()
Returns the InterMineObject of the constraint. |
QueryClass |
getQueryClass()
Returns the QueryClass of the constraint. |
QueryReference |
getReference()
Returns the QueryReference of the constraint. |
int |
hashCode()
Get the hashCode for this object, overrides Object.hashCode() |
| Methods inherited from class org.intermine.objectstore.query.Constraint |
|---|
getOp, negate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected QueryReference ref
protected QueryClass cls
protected InterMineObject obj
public static final java.util.List<ConstraintOp> VALID_OPS
public static final java.util.List<ConstraintOp> VALID_OPS_NULL
| Constructor Detail |
|---|
public ContainsConstraint(QueryReference ref,
ConstraintOp op,
QueryClass cls)
ref - the target QueryReferenceop - specify CONTAINS or DOES_NOT_CONTAINcls - the QueryClass to to be tested against reference
public ContainsConstraint(QueryReference ref,
ConstraintOp op,
InterMineObject obj)
ref - the target QueryReferenceop - specify CONTAINS or DOES_NOT_CONTAINobj - the InterMineObject to be tested against reference
public ContainsConstraint(QueryObjectReference ref,
ConstraintOp op)
ref - the target QueryObjectReferenceop - specify IS_NULL or IS_NOT_NULL| Method Detail |
|---|
public QueryReference getReference()
public QueryClass getQueryClass()
public InterMineObject getObject()
public boolean equals(java.lang.Object obj1)
equals in class java.lang.Objectobj1 - the object to compare with
public int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||