Examples of groups()


Examples of cn.com.annotations.Groups.groups()

        this.template = (Template) this.clazz.getAnnotation(Template.class);

        Groups groupsAnnotation = (Groups) this.clazz.getAnnotation(Groups.class);
        if (groupsAnnotation != null) {
            // 保存显示定义的组
            groups.addAll(Arrays.asList(groupsAnnotation.groups()));
        }
        // 保存默认组
        groups.add(getDefaultGroup());

        // 设定当前组
View Full Code Here

Examples of com.dotcms.repackage.org.apache.oro.text.regex.MatchResult.groups()

    Perl5Matcher matcher = (Perl5Matcher) localP5Matcher.get();
    String oldParse;
    String newParse;
      while(matcher.contains(tb, parseContainerPattern)){
         MatchResult match = matcher.getMatch();
        int groups = match.groups();
         for(int g=0;g<groups;g++){
           oldParse = match.group(g);
           if(matcher.contains(oldParse, oldContainerPattern)){
             MatchResult matchOld = matcher.getMatch();
             newParse = matchOld.group(0).trim();
View Full Code Here

Examples of com.flaptor.hounder.searcher.GroupedSearchResults.groups()

        MultiGSR result = new MultiGSR(gsr,searchers.size());

        for (Entry<Integer, GroupedSearchResults> entry: goodResultsMap.entrySet()){
          int searcherNum= entry.getKey();
          GroupedSearchResults tgsr = entry.getValue();
      result.setData(searcherNum, tgsr.getResponseTime(), tgsr.groups());
        }
        for (Entry<Integer, String> entry: badResultsMap.entrySet()){
          int searcherNum= entry.getKey();
          result.setData(searcherNum, -1L, -1);
          logger.warn("Searcher " + entry.getKey() + " failed with " + entry.getValue());
View Full Code Here

Examples of com.gramant.jtr.annotation.Test.groups()

    private List<Method> getTestMethods(Class suiteClass, String group) {
        List<Method> testMethods = new ArrayList<Method>();
        Method[] methods = suiteClass.getMethods();
        for (Method method : methods) {
            Test test = method.getAnnotation(Test.class);
            if ((test != null) && (ArrayUtils.contains(test.groups(), group)))
                testMethods.add(method);
        }
        List<Method> testMethodsSorted = new ArrayList<Method>(testMethods.size());
        Method parentMethod = null;
        while ((parentMethod = getMethod(parentMethod, testMethods)) != null) {
View Full Code Here

Examples of com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField.groups()

          boolean inGroup = false;
          for (int g : groups){
            if (inGroup){
              break;
            }
            for (int efg : ef.groups()){
              if (g == efg){
                inGroup = true;
                annotationList.add(new Object[]{ef, f});
                break;
              }
View Full Code Here

Examples of javax.validation.constraints.NotNull.groups()

    Set<ConstraintViolation<FrenchAddress>> constraintViolations = validator.validate( address );
    assertCorrectNumberOfViolations( constraintViolations, 1 );
    ConstraintViolation<FrenchAddress> constraintViolation = constraintViolations.iterator().next();
    assertCorrectConstraintTypes( constraintViolations, NotNull.class );
    NotNull notNull = (NotNull) constraintViolation.getConstraintDescriptor().getAnnotation();
    List<Class<?>> groups = Arrays.asList( notNull.groups() );
    assertTrue( groups.size() == 2, "There should be two groups" );
    assertTrue( groups.contains( Default.class ), "The default group should be in the list." );
    assertTrue(
        groups.contains( FrenchAddress.FullAddressCheck.class ),
        "The FrenchAddress.FullAddressCheck group should be inherited."
View Full Code Here

Examples of org.apache.oro.text.regex.MatchResult.groups()

                : matcher.contains(_string, pattern))
    {
      if (array != null) {
        MatchResult match = matcher.getMatch();
        array.clear();
        int n = match.groups();
        for(int i=0; i<n; i++) {
          array.append(Any.create(match.group(i)));
        }
        return array;
View Full Code Here

Examples of org.apache.oro.text.regex.MatchResult.groups()

        return array;

      } else if (list != null) {
        MatchResult match = matcher.getMatch();
        list.clear();
        int n = match.groups();
        for(int i=0; i<n; i++) {
          list.append(Any.create(match.group(i)));
        }
        return list;       
      }
View Full Code Here

Examples of org.apache.oro.text.regex.MatchResult.groups()

                : matcher.contains(string, _pattern))
    {
      if (array != null) {
        MatchResult match = matcher.getMatch();
        array.clear();
        int n = match.groups();
        for(int i=0; i<n; i++) {
          array.append(Any.create(match.group(i)));
        }
        return array;
View Full Code Here

Examples of org.apache.oro.text.regex.MatchResult.groups()

        return array;

      } else if (list != null) {
        MatchResult match = matcher.getMatch();
        list.clear();
        int n = match.groups();
        for(int i=0; i<n; i++) {
          list.append(Any.create(match.group(i)));
        }
        return list;       
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.