Examples of MapMatcher


Examples of org.apache.ivy.plugins.matcher.MapMatcher

     */
    public void addModuleConfiguration(Map attributes, PatternMatcher matcher,
            String resolverName, String branch, String conflictManager, String resolveMode) {
        checkResolverName(resolverName);
        moduleSettings.defineRule(
            new MapMatcher(attributes, matcher),
            new ModuleSettings(resolverName, branch, conflictManager, resolveMode));
    }
View Full Code Here

Examples of org.apache.ivy.plugins.matcher.MapMatcher

     * @param matcher
     * @param resolverName
     */
    public void addConflictManager(ModuleId moduleId, PatternMatcher matcher,
            ConflictManager manager) {
        conflictManagers.defineRule(new MapMatcher(moduleId.getAttributes(), matcher), manager);
    }
View Full Code Here

Examples of org.apache.ivy.plugins.matcher.MapMatcher

        return (ConflictManager) conflictManagers.getRule(moduleId);
    }

    public void addDependencyDescriptorMediator(ModuleId moduleId, PatternMatcher matcher,
            DependencyDescriptorMediator ddm) {
        dependencyDescriptorMediators.defineRule(new MapMatcher(moduleId.getAttributes(), matcher),
            ddm);
    }
View Full Code Here

Examples of org.apache.ivy.plugins.matcher.MapMatcher

     */
    public void addModuleConfiguration(Map attributes, PatternMatcher matcher,
            String resolverName, String branch, String conflictManager, String resolveMode) {
        checkResolverName(resolverName);
        moduleSettings.defineRule(
            new MapMatcher(attributes, matcher),
            new ModuleSettings(resolverName, branch, conflictManager, resolveMode));
    }
View Full Code Here

Examples of org.apache.ivy.plugins.matcher.MapMatcher

    public void setChangingPattern(String changingPattern) {
        this.changingPattern = changingPattern;
    }

    public void addTTL(Map attributes, PatternMatcher matcher, long duration) {
        ttlRules.defineRule(new MapMatcher(attributes, matcher), new Long(duration));
    }
View Full Code Here

Examples of org.apache.ivy.plugins.matcher.MapMatcher

     */
    public void addModuleConfiguration(Map attributes, PatternMatcher matcher,
            String resolverName, String branch, String conflictManager, String resolveMode) {
        checkResolverName(resolverName);
        moduleSettings.defineRule(
            new MapMatcher(attributes, matcher),
            new ModuleSettings(resolverName, branch, conflictManager, resolveMode));
    }
View Full Code Here

Examples of org.apache.ivy.plugins.matcher.MapMatcher

        Map/*<MapMatcher, DependencyDescriptorMediator>*/ mediators
            = md.getAllDependencyDescriptorMediators().getAllRules();
       
        for (Iterator iterator = mediators.entrySet().iterator(); iterator.hasNext();) {
            Map.Entry mediatorRule = (Map.Entry) iterator.next();
            MapMatcher matcher = (MapMatcher) mediatorRule.getKey();
            DependencyDescriptorMediator mediator =
                (DependencyDescriptorMediator) mediatorRule.getValue();
           
            if (mediator instanceof OverrideDependencyDescriptorMediator) {
                OverrideDependencyDescriptorMediator oddm =
                    (OverrideDependencyDescriptorMediator) mediator;
               
                out.print("\t\t<override");
                out.print(" org=\"" + XMLHelper.escape(
                    (String) matcher.getAttributes().get(IvyPatternHelper.ORGANISATION_KEY))
                    + "\"");
                out.print(" module=\"" + XMLHelper.escape(
                    (String) matcher.getAttributes().get(IvyPatternHelper.MODULE_KEY))
                    + "\"");
                out.print(" matcher=\"" + XMLHelper.escape(
                    matcher.getPatternMatcher().getName())
                    + "\"");
                if (oddm.getBranch() != null) {
                    out.print(" branch=\"" + XMLHelper.escape(oddm.getBranch()) + "\"");
                }
                if (oddm.getVersion() != null) {
View Full Code Here

Examples of org.jtester.hamcrest.matcher.array.MapMatcher

    super(map, IMapAssert.class);
    this.valueClaz = Map.class;
  }

  public IMapAssert hasKeys(Object key, Object... keys) {
    MapMatcher matcher1 = new MapMatcher(key, MapMatcherType.KEY);
    if (keys == null || keys.length == 0) {
      return assertThat(matcher1);
    }
    List<Matcher> list = new ArrayList<Matcher>();
    list.add(matcher1);
    for (Object item : keys) {
      list.add(new MapMatcher(item, MapMatcherType.KEY));
    }
    return assertThat(AllOf.allOf(list));
  }
View Full Code Here

Examples of org.jtester.hamcrest.matcher.array.MapMatcher

    }
    return assertThat(AllOf.allOf(list));
  }

  public IMapAssert hasValues(Object value, Object... values) {
    MapMatcher matcher1 = new MapMatcher(value, MapMatcherType.VALUE);
    if (values == null || values.length == 0) {
      return assertThat(matcher1);
    }
    List<Matcher> list = new ArrayList<Matcher>();
    list.add(matcher1);
    for (Object item : values) {
      list.add(new MapMatcher(item, MapMatcherType.VALUE));
    }
    return assertThat(AllOf.allOf(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.