pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes
Class AtomicValue

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
Direct Known Subclasses:
BooleanValue, DoubleValue, IntegerValue, StringValue

public abstract class AtomicValue
extends SingleValue

The AtomicValue class represents the main class of available atomic results.

Author:
Jakub Trzetrzelewski, jakub_trzetrzelewski@yahoo.com

Constructor Summary
AtomicValue()
           
 
Method Summary
abstract  java.lang.String getValueAsString()
          Returns the atomic value as a string value.
 QueryResult operatorDEREFERENCE()
          Returns the result of dereference operation on atomic result, which is this atomic result itself.
 QueryResult operatorFULLDEREFERENCE()
          Return the result of full dereference operation on atomic result, which is this atomic result itself.
 QueryResult operatorMIXEDDEREFERENCE()
          Return the result of mixed dereference operation on atomic result, which is this atomic result itself.
 void operatorPRINT(java.lang.String st, java.io.PrintWriter out)
          Prints the actual atomic result in the normal fashion.
 QueryResult operatorSPECIALDEREFERENCE()
          Return the result of special dereference operation on atomic result, which is this atomic result itself.
 void operatorXMLPRINT(java.lang.String st, java.io.PrintWriter out)
          Prints the actual atomic result in the XML fasion.
 void show(java.lang.String st, java.io.PrintWriter out)
          Prints the actual atomic result in the raw fasion.
 
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 pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.QueryResult
getLongestTypeAsSpacesString, getPreparedTypeAsString, getTypeAsString, nested, operatorABSOLUTEVALUE, operatorASSIGN, operatorAVERAGE, operatorCOMPARE, operatorCONDITION, operatorCONJUNCTION, operatorCOSINE, operatorCREATE, operatorCREATE, operatorCREATELOCAL, operatorCREATELOCAL, operatorCREATEPERMANENT, operatorCREATEPERMANENT, operatorDELETE, operatorDESCENDING, operatorDIFFERENCE, operatorDISJUNCTION, operatorDIVIDE, operatorDIVIDEASSIGN, operatorEQUAL, operatorEXPONENT, operatorGREATER, operatorGREATEREQUAL, operatorINSERT, operatorINSERTINTO, operatorINTERSECTION, operatorLOGARITHM, operatorLOWER, operatorLOWEREQUAL, operatorMAXIMUM, operatorMINIMUM, operatorMINUS, operatorMINUS, operatorMINUSASSIGN, operatorMODULO, operatorMODULOASSIGN, operatorNEGATION, operatorNOTEQUAL, operatorPLUS, operatorPLUS, operatorPLUSASSIGN, operatorPOWER, operatorPREDECREMENT, operatorPREINCREMENT, operatorPRINT, operatorRANGE, operatorRANGE, operatorRENAMETO, operatorSIGNUM, operatorSINE, operatorSQUAREROOT, operatorSUM, operatorSYMMETRICDIFFERENCE, operatorTIMES, operatorTIMESASSIGN, operatorTOBAG, operatorTODOUBLE, operatorTOINTEGER, operatorTOSEQUENCE, operatorTOSTRING, operatorTOSTRUCT, operatorUPDATETO, operatorXMLPRINT, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomicValue

public AtomicValue()
Method Detail

getValueAsString

public abstract java.lang.String getValueAsString()
Returns the atomic value as a string value.
Returns:
the result type as string.

show

public void show(java.lang.String st,
                 java.io.PrintWriter out)
Prints the actual atomic result in the raw fasion. The result is printed on out object.
Overrides:
show in class QueryResult
Parameters:
st - the string which is a auxiliary tabulator.
out - the object responsible for displaying information.
Throws:
TypeMismatchException - never in this case.

operatorPRINT

public void operatorPRINT(java.lang.String st,
                          java.io.PrintWriter out)
                   throws TypeMismatchException
Prints the actual atomic result in the normal fashion. The result is printed on out object.
Overrides:
operatorPRINT in class QueryResult
Parameters:
st - the string which is a auxiliary tabulator.
out - the object responsible for displaying information.
Throws:
TypeMismatchException - never in this case.

operatorXMLPRINT

public void operatorXMLPRINT(java.lang.String st,
                             java.io.PrintWriter out)
                      throws TypeMismatchException
Prints the actual atomic result in the XML fasion. The result is printed on out object.
Overrides:
operatorXMLPRINT in class QueryResult
Parameters:
st - the string which is a auxiliary tabulator.
out - the object responsible for displaying information.
Throws:
TypeMismatchException - never in this case.

operatorDEREFERENCE

public QueryResult operatorDEREFERENCE()
                                throws TypeMismatchException
Returns the result of dereference operation on atomic result, which is this atomic result itself.
Overrides:
operatorDEREFERENCE in class QueryResult
Returns:
this atomic value.
Throws:
TypeMismatchException - never in this case.
See Also:
QueryResult

operatorFULLDEREFERENCE

public QueryResult operatorFULLDEREFERENCE()
                                    throws TypeMismatchException
Return the result of full dereference operation on atomic result, which is this atomic result itself.
Overrides:
operatorFULLDEREFERENCE in class QueryResult
Returns:
this atomic value.
Throws:
TypeMismatchException - never in this case.
See Also:
QueryResult

operatorSPECIALDEREFERENCE

public QueryResult operatorSPECIALDEREFERENCE()
                                       throws TypeMismatchException
Return the result of special dereference operation on atomic result, which is this atomic result itself.
Overrides:
operatorSPECIALDEREFERENCE in class QueryResult
Returns:
this atomic value.
Throws:
TypeMismatchException - never in this case.
See Also:
QueryResult

operatorMIXEDDEREFERENCE

public QueryResult operatorMIXEDDEREFERENCE()
                                     throws TypeMismatchException
Return the result of mixed dereference operation on atomic result, which is this atomic result itself.
Overrides:
operatorMIXEDDEREFERENCE in class QueryResult
Returns:
this atomic value.
Throws:
TypeMismatchException - never in this case.
See Also:
QueryResult