|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.QueryPart
public final class QueryPart
A QueryPart object represents a boolean expression on the value of a particular property of an item. For example, it could be used to define query to match file objects whose name starts with a specific string.
| Nested Class Summary | |
|---|---|
static class |
QueryPart.Relation
Relations that can be used in the expression |
static class |
QueryPart.WebCacheQueryPart
|
| Method Summary | |
|---|---|
QueryPart |
copyQueryPart()
Returns a copy of this QueryPart. |
boolean |
evaluate(Query.Context context,
ViewMember viewMember)
Evaluates the query part on the given view member, based on the given user context. |
boolean |
evaluateAgainst(java.lang.Object value)
Evaluate this QueryPart with respect to the specified value. |
java.lang.String |
getDebugString()
Returns a debug string representation of this QueryPart. |
Property |
getProperty()
Gets the property being tested by this query part. |
QueryPart.Relation |
getRelation()
Returns the relation type for this expression. |
java.lang.Object |
getValue()
Gets the value of the item property in question |
boolean |
isCaseIgnored()
Verify if case has been ignored |
void |
setCaseIgnored(boolean ignore)
Set if case needs to be ignored |
void |
setRelation(QueryPart.Relation relation)
Sets the relation type for this expression. |
java.lang.String |
toString()
Returns the debug string representation of this QueryPart. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public QueryPart copyQueryPart()
public java.lang.String toString()
toString in class java.lang.ObjectQueryPart.getDebugString()public java.lang.String getDebugString()
public boolean evaluate(Query.Context context,
ViewMember viewMember)
context - User Context to be usedviewMember - on which the query is evaluated on
public boolean evaluateAgainst(java.lang.Object value)
value - the value to test against
public QueryPart.Relation getRelation()
public void setRelation(QueryPart.Relation relation)
relation - Relation to be usedpublic boolean isCaseIgnored()
public void setCaseIgnored(boolean ignore)
ignore - boolean true if case is ignored while evaluating the
expressionpublic Property getProperty()
public java.lang.Object getValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||