本文整理汇总了Java中org.apache.ivy.util.filter.NoFilter类的典型用法代码示例。如果您正苦于以下问题:Java NoFilter类的具体用法?Java NoFilter怎么用?Java NoFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NoFilter类属于org.apache.ivy.util.filter包,在下文中一共展示了NoFilter类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: IvyEventFilter
import org.apache.ivy.util.filter.NoFilter; //导入依赖的package包/类
public IvyEventFilter(String event, String filterExpression, PatternMatcher matcher) {
this.matcher = (matcher == null) ? ExactPatternMatcher.INSTANCE : matcher;
if (event == null) {
nameFilter = NoFilter.instance();
} else {
final Matcher eventNameMatcher = this.matcher.getMatcher(event);
nameFilter = new Filter<IvyEvent>() {
public boolean accept(IvyEvent e) {
return eventNameMatcher.matches(e.getName());
}
};
}
if (isNullOrEmpty(filterExpression)) {
attFilter = NoFilter.instance();
} else {
attFilter = parseExpression(filterExpression);
}
}
示例2: acceptAll
import org.apache.ivy.util.filter.NoFilter; //导入依赖的package包/类
private Filter<String> acceptAll() {
return NoFilter.instance();
}
示例3: getRule
import org.apache.ivy.util.filter.NoFilter; //导入依赖的package包/类
/**
* Returns the rule object matching the given {@link ModuleId}, or <code>null</code> if no rule
* applies.
*
* @param mid
* the {@link ModuleId} to search the rule for. Must not be <code>null</code>.
* @return the rule object matching the given {@link ModuleId}, or <code>null</code> if no rule
* applies.
* @see #getRule(ModuleId, Filter)
*/
public T getRule(ModuleId mid) {
return getRule(mid, NoFilter.<T> instance());
}
示例4: getRules
import org.apache.ivy.util.filter.NoFilter; //导入依赖的package包/类
/**
* Returns the rules objects matching the given {@link ModuleId}, or an empty array if no rule
* applies.
*
* @param mid
* the {@link ModuleId} to search the rule for. Must not be <code>null</code>.
* @return an array of rule objects matching the given {@link ModuleId}.
*/
public List<T> getRules(ModuleId mid) {
return getRules(mid.getAttributes(), NoFilter.<T> instance());
}