示例#1
0
  @Override
  protected boolean acceptFile(File file) {
    String path = getMatchingFilePath(file);

    return Wildcard.matchPath(path, pattern);
  }
 public static boolean validate(Object value, String pattern) {
   if (value == null) {
     return true;
   }
   return Wildcard.matchPath(value.toString(), pattern);
 }