|
|||||||||
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.StringValue
The StringValue
class represents the string values.
Constructor Summary | |
StringValue(java.lang.String value)
Creates a new string initialized with specified value . |
Method Summary | |
java.lang.String |
getTypeAsString()
Returns a name of the result ( QueryResult ) type. |
java.lang.String |
getValue()
Returns the value of the string value. |
java.lang.String |
getValueAsString()
Returns the string value as a string value. |
BooleanValue |
operatorCOMPARE(QueryResult r)
Method responsible for binary compare operation. |
QueryResult |
operatorDESCENDING()
Method responsible for unary descending operation. |
BooleanValue |
operatorEQUAL(QueryResult r)
Method responsible for binary equal operation. |
BooleanValue |
operatorNOTEQUAL(QueryResult r)
Method responsible for binary not equal operation. |
QueryResult |
operatorPLUS(QueryResult r)
Method responsible for binary plus operation, in this case - string concatenation. |
StringValue |
operatorTOSTRING()
Method responsible for unary tostring operation. |
java.lang.String |
stringValue()
Returns the string 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 StringValue(java.lang.String 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.String getValue()
public java.lang.String stringValue()
public QueryResult operatorDESCENDING() throws TypeMismatchException
operatorDESCENDING
in class QueryResult
r
- the right operand of the unary descending operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public StringValue operatorTOSTRING() throws TypeMismatchException
operatorTOSTRING
in class QueryResult
r
- the right operand of the unary tostring operator.TypeMismatchException
- if type mismatch occurs.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
,
BooleanValue
,
IntegerValue
,
DoubleValue
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
,
BooleanValue
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
,
BooleanValue
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
,
BooleanValue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |