|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.fh_mannheim.mm.dms.framework.Query
This class converts a query string into a formatted string.
| Field Summary | |
static char |
charBOOLEAN_AND
Chars for introducing a boolean value |
static char |
charBOOLEAN_NOT
|
| Constructor Summary | |
Query()
Constructor. |
|
Query(java.lang.String strQuery)
Constructor. |
|
Query(java.lang.String strQuery,
int nLanguage,
int nFiletype,
FormattedDate minAge,
FormattedDate maxAge,
int nLimit,
boolean bWebSearch,
int nUserID)
Constructor. |
|
Query(java.lang.String strQuery,
int nLanguage,
int nFiletype,
int nLimit,
boolean bWebSearch,
int nUserID)
Constructor. |
|
| Method Summary | |
void |
addQuery(java.lang.String strQuery)
Add a query. |
void |
addQueryWord(java.lang.String strWord)
Add a word. |
java.util.ArrayList |
getAllowedWords()
Get all words, which are should exist. |
java.util.ArrayList |
getAllWords()
Get all words. |
int |
getFiletype()
Get filetype of query. |
java.util.ArrayList |
getForbiddenWords()
Get all words, which are forbidden. |
int |
getLanguage()
Get language of query. |
int |
getLimit()
Get limit of query. |
FormattedDate |
getMaximumAge()
Get maximum age of retrieved files. |
FormattedDate |
getMinimumAge()
Get minimum age of retrieved files. |
java.lang.String |
getPattern()
Get the formatted query for a new query |
java.util.ArrayList |
getRequiredWords()
Get all words, which are required. |
int |
getUserID()
Get user of query. |
boolean |
isComplete()
Is query complete. |
boolean |
isWebSearchEnabled()
Is websearch enabled or not. |
void |
setFiletype(int nFiletype)
Set filetype of query. |
void |
setLanguage(int nLanguage)
Set language of query. |
void |
setLimit(int nLimit)
Set limit of query. |
void |
setMaximumAge(FormattedDate maxAge)
Set maximum age of retrieved files. |
void |
setMinimumAge(FormattedDate minAge)
Set minimum age of retrieved files. |
void |
setUserID(int nUserID)
Set user of query. |
void |
setWebSearch(boolean bEnabled)
Set websearch for query. |
org.w3c.dom.Element |
toElement(org.w3c.dom.Document doc)
Write information of query in a xml element. |
org.w3c.dom.Element |
toElement(org.w3c.dom.Element element,
org.w3c.dom.Document doc)
Write information of query in a xml element. |
java.lang.String |
toString()
Get the formatted query |
java.lang.String |
toSummary()
Get the formatted query |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final char charBOOLEAN_AND
public static final char charBOOLEAN_NOT
| Constructor Detail |
public Query()
public Query(java.lang.String strQuery)
strQuery - Pre-selected query
public Query(java.lang.String strQuery,
int nLanguage,
int nFiletype,
int nLimit,
boolean bWebSearch,
int nUserID)
strQuery - Pre-selected querynLanguage - LanguagenFiletype - FiletypenLimit - LimitbWebSearch - WebSearchnUserID - User
public Query(java.lang.String strQuery,
int nLanguage,
int nFiletype,
FormattedDate minAge,
FormattedDate maxAge,
int nLimit,
boolean bWebSearch,
int nUserID)
strQuery - Pre-selected querynLanguage - LanguagenFiletype - FiletypeminAge - Minimum Age as datemaxAge - Maximum Age as datenLimit - LimitbWebSearch - WebSearchnUserID - User| Method Detail |
public void addQueryWord(java.lang.String strWord)
strWord - New keywordpublic void addQuery(java.lang.String strQuery)
strQuery - New query stringpublic int getLanguage()
public int getLimit()
public FormattedDate getMaximumAge()
public FormattedDate getMinimumAge()
public int getFiletype()
public int getUserID()
public java.util.ArrayList getRequiredWords()
public java.util.ArrayList getAllowedWords()
public java.util.ArrayList getForbiddenWords()
public java.util.ArrayList getAllWords()
public java.lang.String getPattern()
public boolean isWebSearchEnabled()
public boolean isComplete()
public void setLanguage(int nLanguage)
nLanguage - Languagepublic void setLimit(int nLimit)
nLimit - Limitpublic void setMinimumAge(FormattedDate minAge)
minAge - Minimum age as datepublic void setMaximumAge(FormattedDate maxAge)
maxAge - Maximum age as datepublic void setFiletype(int nFiletype)
nFiletype - Filetypepublic void setUserID(int nUserID)
nUserID - Userpublic void setWebSearch(boolean bEnabled)
bEnabled - Websearch enabled or notpublic org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
toElement in interface IElementdoc - XML Document
public org.w3c.dom.Element toElement(org.w3c.dom.Element element,
org.w3c.dom.Document doc)
toElement in interface IElementelement - Root elementdoc - XML Document
public java.lang.String toString()
toString in interface IElementpublic java.lang.String toSummary()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||