org.jafer.query
Class RPNQuery

java.lang.Object
  extended by org.jafer.query.RPNQuery
All Implemented Interfaces:
QueryConverter

public class RPNQuery
extends java.lang.Object
implements QueryConverter

This class wraps a RPN Query


Field Summary
protected  z3950.v3.RPNQuery query
          Stores a reference to the Z3950 RPNQuery
 
Constructor Summary
RPNQuery()
          Default constructor
RPNQuery(JaferQuery jaferQuery)
          constructor
RPNQuery(z3950.v3.RPNQuery rpnQuery)
          constructor
 
Method Summary
 z3950.v3.RPNQuery getQuery()
          Get the constructed query object
 java.lang.String getXML()
          This method returns a string representation of the XML for the current query.
 CQLQuery toCQLQuery()
          This method converts the current Query representation into a CQLQuery object
 JaferQuery toJaferQuery()
          This method converts the current Query representation into a JaferQuery object
 RPNQuery toRPNQuery()
          This method converts the current Query representation into a RPNQuery object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

query

protected z3950.v3.RPNQuery query
Stores a reference to the Z3950 RPNQuery

Constructor Detail

RPNQuery

public RPNQuery()
Default constructor


RPNQuery

public RPNQuery(z3950.v3.RPNQuery rpnQuery)
constructor

Parameters:
the - Z3950 RPNQuery

RPNQuery

public RPNQuery(JaferQuery jaferQuery)
         throws QueryException
constructor

Parameters:
the - jafer query to construct from
Throws:
QueryException
Method Detail

getQuery

public z3950.v3.RPNQuery getQuery()
Get the constructed query object

Returns:
the Z3950 RPNQuery

toCQLQuery

public CQLQuery toCQLQuery()
                    throws QueryException
This method converts the current Query representation into a CQLQuery object

Specified by:
toCQLQuery in interface QueryConverter
Returns:
A new CQLQuery
Throws:
QueryException

toJaferQuery

public JaferQuery toJaferQuery()
                        throws QueryException
This method converts the current Query representation into a JaferQuery object

Specified by:
toJaferQuery in interface QueryConverter
Returns:
A new JaferQuery
Throws:
QueryException

toRPNQuery

public RPNQuery toRPNQuery()
This method converts the current Query representation into a RPNQuery object

Specified by:
toRPNQuery in interface QueryConverter
Returns:
A new RPNQuery

getXML

public java.lang.String getXML()
                        throws QueryException
This method returns a string representation of the XML for the current query. As RPN are not in XML this returns the jafer version of the query

Specified by:
getXML in interface QueryConverter
Returns:
The query in XML
Throws:
QueryException