javax.wbem.query
Class AndQueryExp
java.lang.Object
|
+--javax.wbem.query.QueryExp
|
+--javax.wbem.query.AndQueryExp
- All Implemented Interfaces:
- java.io.Serializable
- public class AndQueryExp
- extends QueryExp
This class represents And query conditional expressions.
- Since:
- WBEM 1.0
The AndQueryExp class represents the expression
query1 && query2
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AndQueryExp
public AndQueryExp()
- Empty constructor
AndQueryExp
public AndQueryExp(QueryExp q1,
QueryExp q2)
- Constructor with two QueryExp operands.
getLeftExp
public QueryExp getLeftExp()
- Accessor for left operand.
getRightExp
public QueryExp getRightExp()
- Accessor for right operand.
apply
public boolean apply(CIMElement obj)
throws CIMException
- return boolean true if the two operands evaluate to true, false
otherwise.
- Overrides:
apply
in class QueryExp
- Following copied from class:
javax.wbem.query.QueryExp
- Parameters:
obj
- The 'row' which is being applied. The row in the case of
WQL can be any CIMElement. Currently the only valid CIMElement
is CIMInstance.- Returns:
- boolean true if the 'row' meets the conditions, 'false' otherwise
In the case of QueryExp it is always true.
- See Also:
CIMInstance
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object