• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java StringMatchFilter类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中com.holonplatform.core.internal.query.filter.StringMatchFilter的典型用法代码示例。如果您正苦于以下问题:Java StringMatchFilter类的具体用法?Java StringMatchFilter怎么用?Java StringMatchFilter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

StringMatchFilter类属于com.holonplatform.core.internal.query.filter包,在下文中一共展示了StringMatchFilter类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: visit

点赞 2

import com.holonplatform.core.internal.query.filter.StringMatchFilter; //导入依赖的package包/类
@Override
public QueryFilter visit(StringMatchFilter filter, Object context) {
	Assert.assertNotNull(filter);
	return filter;
}
 

开发者ID:holon-platform,
项目名称:holon-core,
代码行数:6,
代码来源:TestFilterVisitor.java

示例2: contains

点赞 1

import com.holonplatform.core.internal.query.filter.StringMatchFilter; //导入依赖的package包/类
/**
 * Build a <em>contains</em> filter on given {@link String} <code>expression</code>, checking if the
 * <code>expression</code> value contains given value.
 * @param expression Filter expression (not null)
 * @param value Value which must be contained in expression value
 * @param ignoreCase Whether to ignore case
 * @return QueryFilter
 */
static QueryFilter contains(QueryExpression<String> expression, String value, boolean ignoreCase) {
	return new StringMatchFilter(expression, value, MatchMode.CONTAINS, ignoreCase);
}
 

开发者ID:holon-platform,
项目名称:holon-core,
代码行数:12,
代码来源:QueryFilter.java

示例3: startsWith

点赞 1

import com.holonplatform.core.internal.query.filter.StringMatchFilter; //导入依赖的package包/类
/**
 * Build a <em>starts with</em> filter on given {@link String} <code>expression</code>, checking if the
 * <code>expression</code> value starts with given value.
 * @param expression Filter expression (not null)
 * @param value Value with which the expression value must start with
 * @param ignoreCase Whether to ignore case
 * @return QueryFilter
 */
static QueryFilter startsWith(QueryExpression<String> expression, String value, boolean ignoreCase) {
	return new StringMatchFilter(expression, value, MatchMode.STARTS_WITH, ignoreCase);
}
 

开发者ID:holon-platform,
项目名称:holon-core,
代码行数:12,
代码来源:QueryFilter.java

示例4: endsWith

点赞 1

import com.holonplatform.core.internal.query.filter.StringMatchFilter; //导入依赖的package包/类
/**
 * Build a <em>ends with</em> filter on given {@link String} <code>expression</code>, checking if the
 * <code>expression</code> value ends with given value.
 * @param expression Filter expression (not null)
 * @param value Value with which the expression value must end with
 * @param ignoreCase Whether to ignore case
 * @return QueryFilter
 */
static QueryFilter endsWith(QueryExpression<String> expression, String value, boolean ignoreCase) {
	return new StringMatchFilter(expression, value, MatchMode.ENDS_WITH, ignoreCase);
}
 

开发者ID:holon-platform,
项目名称:holon-core,
代码行数:12,
代码来源:QueryFilter.java

示例5: visit

点赞 1

import com.holonplatform.core.internal.query.filter.StringMatchFilter; //导入依赖的package包/类
/**
 * Visit {@link StringMatchFilter}
 * @param filter Filter to visit
 * @param context Visiting context
 * @return Visit result
 */
R visit(StringMatchFilter filter, C context);
 

开发者ID:holon-platform,
项目名称:holon-core,
代码行数:8,
代码来源:QueryFilterVisitor.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)