Examples of matchCase()


Examples of org.osgi.framework.Filter.matchCase()

    Filter f = filter;
    if (f == null) {
      // it's "*"
      return true;
    }
    return f.matchCase(requested.getProperties());
  }

  /**
   * Returns the canonical string representation of the actions. Always
   * returns present actions in the following canonical order: {@code read},
View Full Code Here

Examples of org.osgi.framework.Filter.matchCase()

    Dictionary[] platformProps = containingState.getPlatformProperties();
    NativeCodeDescription nativeSupplier = (NativeCodeDescription) supplier;
    Filter filter = nativeSupplier.getFilter();
    boolean match = false;
    for (int i = 0; i < platformProps.length && !match; i++) {
      if (filter != null && !filter.matchCase(platformProps[i]))
        continue;
      String[] osNames = nativeSupplier.getOSNames();
      if (osNames.length == 0)
        match = true;
      else {
View Full Code Here

Examples of org.osgi.framework.Filter.matchCase()

        }
        /*
           * we can use matchCase here since properties already supports case
           * insensitive key lookup.
           */
        return f.matchCase(dictionary);
    }

    public String getId() {
        return id;
    }
View Full Code Here

Examples of org.osgi.framework.Filter.matchCase()

    Dictionary<String, Object> d = new UnmodifiableDictionary<String, Object>(properties);
    /*
     * we can use matchCase here since properties already supports case
     * insensitive key lookup.
     */
    return f.matchCase(d);
  }

  /**
   * Returns the string representation of this EndpointDescription.
   *
 
View Full Code Here

Examples of org.osgi.framework.Filter.matchCase()

    Filter filter = nativeSupplier.getFilter();
    boolean match = false;
    for (int i = 0; i < platformProps.length && !match; i++) {
      @SuppressWarnings("rawtypes")
      Dictionary props = platformProps[i];
      if (filter != null && !filter.matchCase(props))
        continue;
      String[] osNames = nativeSupplier.getOSNames();
      if (osNames.length == 0)
        match = true;
      else {
View Full Code Here

Examples of org.osgi.framework.Filter.matchCase()

      Filter filter = FilterImpl.newInstance(platformFilter);
      for (int i = 0; i < platformProperties.length; i++) {
        // using matchCase here in case of duplicate case invarient keys (bug 180817)
        @SuppressWarnings("rawtypes")
        Dictionary props = platformProperties[i];
        if (filter.matchCase(props))
          return true;
      }
    } catch (InvalidSyntaxException e) {
      // return false below
    }
View Full Code Here

Examples of org.osgi.framework.Filter.matchCase()

        properties);
    /*
     * we can use matchCase here since properties already supports case
     * insensitive key lookup.
     */
    return f.matchCase(d);
  }

  /**
   * Returns the string representation of this EndpointDescription.
   *
 
View Full Code Here

Examples of org.osgi.framework.Filter.matchCase()

    Filter f = filter;
    if (f == null) {
      // it's "*"
      return true;
    }
    return f.matchCase(requested.getProperties());
  }

  /**
   * Returns the canonical string representation of the actions. Always
   * returns present actions in the following canonical order:
View Full Code Here

Examples of org.osgi.framework.Filter.matchCase()

        }
        /*
           * we can use matchCase here since properties already supports case
           * insensitive key lookup.
           */
        return f.matchCase(dictionary);
    }

    public String getId() {
        return id;
    }
View Full Code Here

Examples of org.osgi.framework.Filter.matchCase()

        Assert.assertTrue(filter.matchCase(dictionary));

        dictionary.put("substr", "How now brown cow");
        filter = new DefaultFilter(parser.parse(" ( substr =*no*brown*) "));

        Assert.assertTrue(filter.matchCase(dictionary));

        filter = new DefaultFilter(parser.parse(" ( substr =*now*) "));

        Assert.assertTrue(filter.matchCase(dictionary));

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.