|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.clarin.cmdi.mdservice.model.Query
public class Query
Field Summary | |
---|---|
private java.lang.String |
collection
temporary default; |
static java.lang.String |
COLLECTIONS
|
private int |
maxdepth
|
static java.lang.String |
MODEL
|
private java.lang.String |
msg
|
static java.lang.String |
PARSED
|
static java.lang.String |
PARSEERROR
|
private org.z3950.zing.cql.CQLNode |
query_cql
|
private java.lang.String |
query_string
|
static java.lang.String |
RECORDSET
|
private Result |
result
reference to the result-object |
private java.lang.String |
syntax
|
private java.lang.String |
target
meant a target url/service, allowing querying different services on per query basis not used yet |
private java.net.URL |
targetRequest
|
private java.lang.String |
type
|
Constructor Summary | |
---|---|
Query(java.lang.String queryString)
|
|
Query(java.lang.String queryString,
java.lang.String type)
another constructor, with user's querystring and type of the query; problematic not setting the collection! |
|
Query(java.lang.String queryString,
java.lang.String type,
java.lang.String collection)
main constructor, with user's querystring and type of the query, and context-collection (at the moment just one) |
Method Summary | |
---|---|
java.lang.String |
getCollection()
|
int |
getMaxdepth()
|
java.lang.String |
getMsg()
|
java.lang.String |
getQueryString()
|
Result |
getResult()
|
java.lang.String |
getStatus()
|
java.lang.String |
getType()
|
java.lang.Boolean |
isStatus(java.lang.String qstatus)
|
org.z3950.zing.cql.CQLNode |
parse()
tries to parse the query_string according the CQL-syntax if successful returns the root-node of the parse-tree |
void |
setCollection(java.lang.String collection)
|
void |
setMaxdepth(int maxdepth)
|
void |
setMsg(java.lang.String msg)
|
void |
setQueryString(java.lang.String queryString)
|
void |
setResult(Result result)
|
void |
setType(java.lang.String type)
|
java.lang.String |
toCMDIndex()
if the query is just a path-like structure "transforms" to cmdIndex-format, means replace(' |
java.lang.String |
toURLParam()
construct the URL-Param |
java.lang.String |
toXCQL()
provides a xml-version of the query (if parsed successfully) according to the XCQL-schema defined in the SRU/CQL standard |
java.lang.String |
toXPath()
provides a xpath version of the query, based on the XCQL-version, applying a stylesheet on the XCQL-version |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String COLLECTIONS
public static java.lang.String MODEL
public static java.lang.String RECORDSET
public static java.lang.String PARSED
public static java.lang.String PARSEERROR
private java.lang.String type
private java.lang.String target
private java.net.URL targetRequest
private java.lang.String syntax
private java.lang.String query_string
private org.z3950.zing.cql.CQLNode query_cql
private java.lang.String msg
private java.lang.String collection
private int maxdepth
private Result result
Constructor Detail |
---|
public Query(java.lang.String queryString)
public Query(java.lang.String queryString, java.lang.String type, java.lang.String collection)
queryString
- type
- collection
- public Query(java.lang.String queryString, java.lang.String type)
queryString
- type
- Method Detail |
---|
public java.lang.Boolean isStatus(java.lang.String qstatus)
public java.lang.String getStatus()
public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getQueryString()
public void setQueryString(java.lang.String queryString)
public void setCollection(java.lang.String collection)
public java.lang.String getCollection()
public void setMaxdepth(int maxdepth)
public int getMaxdepth()
public void setResult(Result result)
public Result getResult()
public java.lang.String getMsg()
public void setMsg(java.lang.String msg)
public java.lang.String toURLParam() throws java.net.MalformedURLException
java.net.MalformedURLException
public org.z3950.zing.cql.CQLNode parse()
public java.lang.String toXCQL()
public java.lang.String toXPath()
public java.lang.String toCMDIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |