* @author Andreas Br�ker
* @date 09.07.2006
*/
protected XSearchDescriptor toXSearchDescriptor(
ISearchDescriptor searchDescriptor) {
XSearchDescriptor xSearchDescriptor = xSearchable
.createSearchDescriptor();
xSearchDescriptor.setSearchString(searchDescriptor.getSearchContent());
if (searchDescriptor.isCaseSensitive()) {
try {
xSearchDescriptor.setPropertyValue("SearchCaseSensitive",
Boolean.TRUE);
} catch (Throwable throwable) {
// do not consume
}
}
if (searchDescriptor.useCompleteWords()) {
try {
xSearchDescriptor.setPropertyValue("SearchWords", Boolean.TRUE);
} catch (Throwable throwable) {
// do not consume
}
}
if (searchDescriptor.useRegularExpression()) {
try {
xSearchDescriptor.setPropertyValue("SearchRegularExpression",
Boolean.TRUE);
} catch (Throwable throwable) {
// do not consume
}
}
if (searchDescriptor.useSimilaritySearch()) {
try {
xSearchDescriptor.setPropertyValue("SearchSimilarity",
Boolean.TRUE);
} catch (Throwable throwable) {
// do not consume
}
}