public class XMLQuery extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_RESULTS
Maximum number results to get (default).
|
static String[] |
FROM_TOKENS |
protected int |
numResults
Number of results so far.
|
static String |
QUERY_FPI
The Formal Public Identifier of the query DTD.
|
static String |
QUERY_URL
The System Identifier of the query DTD.
|
Constructor and Description |
---|
XMLQuery(Node node)
Instantiates an XMLQuery instance from an XML query structure in DOM node format.
|
XMLQuery(String xmlQueryString)
Instantiates an XMLQuery instance from an XML query structure in string format.
|
XMLQuery(String keywordQuery,
String id,
String title,
String desc,
String ddId,
String resultModeId,
String propType,
String propLevels,
int maxResults)
Constructor.
|
XMLQuery(String keywordQuery,
String id,
String title,
String desc,
String ddId,
String resultModeId,
String propType,
String propLevels,
int maxResults,
boolean parseQuery)
Constructor.
|
XMLQuery(String keywordQuery,
String id,
String title,
String desc,
String ddId,
String resultModeId,
String propType,
String propLevels,
int maxResults,
List mimeAccept)
Constructor.
|
XMLQuery(String keywordQuery,
String id,
String title,
String desc,
String ddId,
String resultModeId,
String propType,
String propLevels,
int maxResults,
List mimeAccept,
boolean parseQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
static Document |
createDocument()
Create an XML DOM document using the query DTD.
|
boolean |
equals(Object rhs) |
List |
getFromElementSet() |
String |
getKwdQueryString()
Gets the original DIS style keyword query string.
|
int |
getMaxResults()
Gets the max # of results
|
List |
getMimeAccept()
Get the list of acceptable MIME types.
|
String |
getPropagationLevels()
Get the propagation levels.
|
String |
getPropagationType()
Get the propagation type.
|
QueryHeader |
getQueryHeader() |
QueryResult |
getResult() |
String |
getResultModeID() |
List |
getResults() |
List |
getSelectElementSet() |
List |
getStatistics()
Get the list of stasitics of this query.
|
List |
getWhereElementSet() |
Document |
getXMLDoc() |
String |
getXMLDocString()
Gets query as an XML document in string format.
|
int |
hashCode() |
static void |
main(String[] argv) |
void |
setRetriever(Retriever retriever) |
void |
setWhereElementSet(List whereElementSet)
Set query where element set.
|
String |
toString() |
protected int numResults
results.size()
because that's limited by maxResults.
Meh, this isn't even updated by anyone as far as I can tell.public static final String[] FROM_TOKENS
public static final int DEFAULT_MAX_RESULTS
public static final String QUERY_FPI
public static final String QUERY_URL
public XMLQuery(String keywordQuery, String id, String title, String desc, String ddId, String resultModeId, String propType, String propLevels, int maxResults)
keywordQuery
- The DIS style keyword query string.id
- A query identifier.title
- A terse description of the query for display.desc
- A description of the query.ddId
- The data dictionary identifier.resultModeId
- Indicates the return of INSTANCE, PROFILE, or CLASS.propType
- Indicates query BROADCAST or PROPOGATE.propLevels
- Number of propogation levels.maxResults
- Maximum number of results to be returned.public XMLQuery(String keywordQuery, String id, String title, String desc, String ddId, String resultModeId, String propType, String propLevels, int maxResults, boolean parseQuery)
keywordQuery
- The DIS style keyword query string.id
- A query identifier.title
- A terse description of the query for display.desc
- A description of the query.ddId
- The data dictionary identifier.resultModeId
- Indicates the return of INSTANCE, PROFILE, or CLASS.propType
- Indicates query BROADCAST or PROPOGATE.propLevels
- Number of propogation levels.maxResults
- Maximum number of results to be returned.parseQuery
- Indicates whether query should be parsedpublic XMLQuery(String keywordQuery, String id, String title, String desc, String ddId, String resultModeId, String propType, String propLevels, int maxResults, List mimeAccept)
keywordQuery
- The DIS style keyword query string.id
- A query identifier.title
- A terse description of the query for display.desc
- A description of the query.ddId
- The data dictionary identifier.resultModeId
- Indicates the return of INSTANCE, PROFILE, or CLASS.propType
- Indicates query BROADCAST or PROPOGATE.propLevels
- Number of propogation levels.maxResults
- Maximum number of results to be returned.mimeAccept
- List of acceptable MIME types.public XMLQuery(String keywordQuery, String id, String title, String desc, String ddId, String resultModeId, String propType, String propLevels, int maxResults, List mimeAccept, boolean parseQuery)
keywordQuery
- The DIS style keyword query string.id
- A query identifier.title
- A terse description of the query for display.desc
- A description of the query.ddId
- The data dictionary identifier.resultModeId
- Indicates the return of INSTANCE, PROFILE, or CLASS.propType
- Indicates query BROADCAST or PROPOGATE.propLevels
- Number of propogation levels.maxResults
- Maximum number of results to be returned.mimeAccept
- List of acceptable MIME types.parseQuery
- Indicates whether query should be parsedpublic XMLQuery(String xmlQueryString) throws SAXException
xmlQueryString
- The XML query structure in string format.SAXException
public XMLQuery(Node node)
node
- The XML <query> node.public List getMimeAccept()
public String getKwdQueryString()
public int getMaxResults()
public List getSelectElementSet()
public List getFromElementSet()
public String getResultModeID()
public List getWhereElementSet()
public void setWhereElementSet(List whereElementSet)
whereElementSet
- Thw where element set of XMLQuery.public QueryResult getResult()
public List getResults()
public void setRetriever(Retriever retriever)
public Document getXMLDoc()
public List getStatistics()
Statistic
objects.public String getXMLDocString()
public String getPropagationType()
String
value.public String getPropagationLevels()
String
value.public static Document createDocument()
public QueryHeader getQueryHeader()
Copyright © 1999–2017 Apache OODT. All rights reserved.