|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.QueryResult | +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.SingleValue | +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.AtomicValue | +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.BooleanValue
The BooleanValue
class represents the boolean values.
Constructor Summary | |
BooleanValue(boolean value)
Creates a new boolean value initialized with specified value . |
|
BooleanValue(java.lang.Boolean value)
Creates a new boolean value initialized with specified value . |
Method Summary | |
boolean |
booleanValue()
Returns the boolean value as a boolean value. |
java.lang.String |
getTypeAsString()
Returns a name of the result ( QueryResult ) type. |
java.lang.Boolean |
getValue()
Returns the value of a boolean value. |
java.lang.String |
getValueAsString()
Returns the boolean value as a string value. |
BooleanValue |
operatorCOMPARE(QueryResult r)
Method responsible for binary compare operation. |
QueryResult |
operatorCONDITION(QueryResult l,
QueryResult r)
Method responsible for ternary condition operation. |
BooleanValue |
operatorCONJUNCTION(QueryResult r)
Method responsible for binary conjunction operation. |
QueryResult |
operatorDESCENDING()
Method responsible for unary descending operation. |
BooleanValue |
operatorDISJUNCTION(QueryResult r)
Method responsible for binary disjunction operation. |
BooleanValue |
operatorEQUAL(QueryResult r)
Method responsible for binary equal operation. |
BooleanValue |
operatorNEGATION()
Method responsible for unary negation operation. |
BooleanValue |
operatorNOTEQUAL(QueryResult r)
Method responsible for binary not equal operation. |
QueryResult |
operatorPLUS(QueryResult r)
Method responsible for binary plus operation. |
StringValue |
operatorTOSTRING()
Method responsible for unary tostring operation. |
java.lang.String |
stringValue()
Returns the boolean value as a string value. |
Methods inherited from class pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.AtomicValue |
operatorDEREFERENCE, operatorFULLDEREFERENCE, operatorMIXEDDEREFERENCE, operatorPRINT, operatorSPECIALDEREFERENCE, operatorXMLPRINT, show |
Methods inherited from class pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.SingleValue |
getNextResultAt, getNumberOfResults, operatorAS, operatorASCENDING, operatorBAG, operatorCOMMA, operatorCOUNT, operatorEXISTS, operatorGROUPAS, operatorINCLUSION, operatorSEQUENCE, operatorSTRUCT, operatorTOSINGLE, operatorUNION, operatorUNIQUE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BooleanValue(java.lang.Boolean value)
value
.value
- the initializing value.public BooleanValue(boolean value)
value
.value
- the initializing value.Method Detail |
public java.lang.String getTypeAsString()
QueryResult
) type.getTypeAsString
in class QueryResult
QueryResult
public java.lang.String getValueAsString()
getValueAsString
in class AtomicValue
public java.lang.Boolean getValue()
public boolean booleanValue()
public java.lang.String stringValue()
public QueryResult operatorDESCENDING() throws TypeMismatchException
operatorDESCENDING
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public StringValue operatorTOSTRING() throws TypeMismatchException
operatorTOSTRING
in class QueryResult
TypeMismatchException
- if type mismatch occurs.StringValue
public BooleanValue operatorNEGATION() throws TypeMismatchException
operatorNEGATION
in class QueryResult
TypeMismatchException
- if type mismatch occurs.BooleanValue
public QueryResult operatorPLUS(QueryResult r) throws TypeMismatchException
operatorPLUS
in class QueryResult
r
- the right operand of the binary plus operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
StringValue
public BooleanValue operatorEQUAL(QueryResult r) throws TypeMismatchException
operatorEQUAL
in class QueryResult
r
- the right operand of the binary equal operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public BooleanValue operatorNOTEQUAL(QueryResult r) throws TypeMismatchException
operatorNOTEQUAL
in class QueryResult
r
- the right operand of the binary not equal operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public BooleanValue operatorDISJUNCTION(QueryResult r) throws TypeMismatchException
operatorDISJUNCTION
in class QueryResult
r
- the right operand of the binary disjunction operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public BooleanValue operatorCONJUNCTION(QueryResult r) throws TypeMismatchException
operatorCONJUNCTION
in class QueryResult
r
- the right operand of the binary conjunction operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public BooleanValue operatorCOMPARE(QueryResult r) throws TypeMismatchException
operatorCOMPARE
in class QueryResult
r
- the right operand of the binary compare operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorCONDITION(QueryResult l, QueryResult r) throws TypeMismatchException
operatorCONDITION
in class QueryResult
m
- the middle operand of the ternary condition operator.r
- the right operand of the ternary condition operator.TypeMismatchException
- if type mismatch occurs.QueryResult
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |