org.oclc.da.gdfr.registryprototype.pvt
Class SimpleQuery

java.lang.Object
  extended by org.oclc.da.gdfr.registryprototype.pvt.SimpleQuery
All Implemented Interfaces:
Query

public class SimpleQuery
extends java.lang.Object
implements Query


Field Summary
static java.lang.String CQL_SYNTAX
           
static java.lang.String XQUERY_SYNTAX
           
 
Constructor Summary
SimpleQuery(java.lang.String syntax)
          Simple constructor specifying the query syntax.
SimpleQuery(java.lang.String syntax, java.lang.String query)
          Constructor specifying the query syntax and query string.
 
Method Summary
 java.lang.String getSyntax()
          Get the query syntax
 boolean isValid()
           
 void setValue(java.lang.String value)
          Set the value of the query
 java.lang.String toString()
          Convert a query into its String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XQUERY_SYNTAX

public static final java.lang.String XQUERY_SYNTAX
See Also:
Constant Field Values

CQL_SYNTAX

public static final java.lang.String CQL_SYNTAX
See Also:
Constant Field Values
Constructor Detail

SimpleQuery

public SimpleQuery(java.lang.String syntax)
Simple constructor specifying the query syntax.

Parameters:
syntax -

SimpleQuery

public SimpleQuery(java.lang.String syntax,
                   java.lang.String query)
Constructor specifying the query syntax and query string.

Parameters:
syntax -
Method Detail

toString

public java.lang.String toString()
Description copied from interface: Query
Convert a query into its String representation

Specified by:
toString in interface Query
Overrides:
toString in class java.lang.Object
Returns:
A string representing the query

isValid

public boolean isValid()

setValue

public void setValue(java.lang.String value)
Description copied from interface: Query
Set the value of the query

Specified by:
setValue in interface Query

getSyntax

public java.lang.String getSyntax()
Description copied from interface: Query
Get the query syntax

Specified by:
getSyntax in interface Query


Copyright © 2008 OCLC Online Computer Library Center, Inc.. All Rights Reserved.