|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bmc.arsys.api.QualifierInfo
public class QualifierInfo
The QualifierInfo
class is composed of a set of zero or more
conditions that limit the set of entries retrieved. Each individual condition
is created by using a tree structure, comprised of an operation and one or
two operands IARQualifierOperand
(depending on the type of
operation). Specific implementations of IARQualifierOperand
interface
are QualifierInfo
and RelationalOperationInfo
QualifierInfo qualInfo = null;
ARServeruser server = new ARServerUser(“User”,”pwd”,”locale”,”server”);
qualInfo = server.parseQualification(String queryString, List
fieldList1, List fieldList2,int queryContext);
Field Summary | |
---|---|
static int |
AR_COND_OP_AND
A qualification using the AND operator. |
static int |
AR_COND_OP_FROM_FIELD
A dynamic qualification using a value from a field. |
static int |
AR_COND_OP_MAX
Indicates the number of currently used possible values (which is 5). |
static int |
AR_COND_OP_NONE
No qualification. |
static int |
AR_COND_OP_NOT
A qualification using the NOT operator. |
static int |
AR_COND_OP_OR
A qualification using the OR operator. |
static int |
AR_COND_OP_REL_OP
A qualification using a relational operator. |
Constructor Summary | |
---|---|
QualifierInfo()
Default Constructor |
|
QualifierInfo(int operation,
QualifierInfo op1,
QualifierInfo op2)
Constructor to represent operations between QualifierInfo objects |
|
QualifierInfo(QualifierFromFieldInfo fid)
Constructor to allow dynamic qualifier |
|
QualifierInfo(RelationalOperationInfo op1)
Constructor to allow relational operation |
Method Summary | |
---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self |
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the provided one. |
QualifierFromFieldInfo |
getFromFieldInfo()
Returns field ID/value pair information. |
QualifierInfo |
getLeftOperand()
Returns value of left operand. |
QualifierInfo |
getNotOperand()
Helper function to return the operand associated in NOT operation |
int |
getOperation()
Returns operation used in qualification. |
RelationalOperationInfo |
getRelationalOperationInfo()
Helper function to return RelationalOperationInfo object |
QualifierInfo |
getRightOperand()
Returns value of right operand. |
int |
hashCode()
Returns the hash code value for this instance of the current class. |
void |
setLeftOperand(QualifierInfo left)
Sets value of left operand. |
void |
setOperation(int op)
Sets operation used in qualification. |
void |
setRightOperand(QualifierInfo right)
Sets value of right operand. |
String |
toString()
Returns a string description of the object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int AR_COND_OP_NONE
public static final int AR_COND_OP_AND
AND
operator.
public static final int AR_COND_OP_OR
OR
operator.
public static final int AR_COND_OP_NOT
NOT
operator.
public static final int AR_COND_OP_REL_OP
public static final int AR_COND_OP_FROM_FIELD
public static final int AR_COND_OP_MAX
Constructor Detail |
---|
public QualifierInfo()
public QualifierInfo(int operation, QualifierInfo op1, QualifierInfo op2) throws IllegalArgumentException
QualifierInfo
objects
IllegalArgumentException
- if invalid operationpublic QualifierInfo(RelationalOperationInfo op1)
public QualifierInfo(QualifierFromFieldInfo fid)
Method Detail |
---|
public int getOperation()
public void setOperation(int op)
Constants.AR_COND_OP_NONE
Constants.AR_COND_OP_AND
Constants.AR_COND_OP_OR
Constants.AR_COND_OP_NOT
Constants.AR_COND_OP_REL_OP
public void setLeftOperand(QualifierInfo left)
public void setRightOperand(QualifierInfo right)
public QualifierInfo getLeftOperand()
public QualifierInfo getRightOperand()
public QualifierInfo getNotOperand()
NOT
operation
public RelationalOperationInfo getRelationalOperationInfo()
RelationalOperationInfo
object
public QualifierFromFieldInfo getFromFieldInfo()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public boolean equals(Object obj)
equals
in class Object
obj
- the object that we are comparing to
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |