|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.xmlquery.XMLQuery
public class XMLQuery
EDA XML query class. Parses a DIS style keyword query and creates query SELECT, FROM, and WHERE clauses. An XML DOM structure and an XML document representing the query can also be created. A RESULT set can be added to and retrieve.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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 parsed
public 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 parsed
public XMLQuery(String xmlQueryString)
throws SAXException
xmlQueryString - The XML query structure in string format.
SAXExceptionpublic XMLQuery(Node node)
node - The XML <query> node.| Method Detail |
|---|
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 int hashCode()
hashCode in class Objectpublic boolean equals(Object rhs)
equals in class Objectpublic Object clone()
clone in class Objectpublic String toString()
toString in class Objectpublic static Document createDocument()
public static void main(String[] argv)
throws Exception
Exceptionpublic QueryHeader getQueryHeader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||