private static boolean matchMandatoryAttribute(String attrName, SimpleFilter sf) { if ((sf.getName() != null) && sf.getName().equals(attrName)) { return true; } else if (sf.getOperation() == SimpleFilter.AND) { List list = (List) sf.getValue(); for (Object aList : list) { SimpleFilter sf2 = (SimpleFilter) aList; if ((sf2.getName() != null) && sf2.getName().equals(attrName)) { return true; } } } return false; }
private static boolean matchMandatoryAttribute(String attrName, SimpleFilter sf) { if ((sf.getName() != null) && sf.getName().equals(attrName)) { return true; } else if (sf.getOperation() == SimpleFilter.AND) { List list = (List) sf.getValue(); for (Object aList : list) { SimpleFilter sf2 = (SimpleFilter) aList; if ((sf2.getName() != null) && sf2.getName().equals(attrName)) { return true; } } } return false; }
List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (int i = 0; (caps.size() > 0) && (i < sfs.size()); i++) { matches = match(caps, sfs.get(i)); List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (SimpleFilter sf1 : sfs) { matches.addAll(match(caps, sf1)); List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (SimpleFilter sf1 : sfs) { matches.removeAll(match(caps, sf1)); Map<Object, Set<Capability>> index = indices.get(sf.getName()); if ((sf.getOperation() == SimpleFilter.EQ) && (index != null)) { Set<Capability> existingCaps = index.get(sf.getValue()); if (existingCaps != null) { matches.addAll(existingCaps); Object lhs = cap.getAttributes().get(sf.getName()); if (lhs != null) { if (compare(lhs, sf.getValue(), sf.getOperation())) { matches.add(cap);
List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (int i = 0; (caps.size() > 0) && (i < sfs.size()); i++) { matches = match(caps, sfs.get(i)); List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (SimpleFilter sf1 : sfs) { matches.addAll(match(caps, sf1)); List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (SimpleFilter sf1 : sfs) { matches.removeAll(match(caps, sf1)); Map<Object, Set<Capability>> index = indices.get(sf.getName()); if ((sf.getOperation() == SimpleFilter.EQ) && (index != null)) { Set<Capability> existingCaps = index.get(sf.getValue()); if (existingCaps != null) { matches.addAll(existingCaps); Object lhs = cap.getAttributes().get(sf.getName()); if (lhs != null) { if (compare(lhs, sf.getValue(), sf.getOperation())) { matches.add(cap);
List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (int i = 0; matched && (i < sfs.size()); i++) { matched = matchesInternal(cap, sfs.get(i)); List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (int i = 0; !matched && (i < sfs.size()); i++) { matched = matchesInternal(cap, sfs.get(i)); List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (SimpleFilter sf1 : sfs) { matched = !(matchesInternal(cap, sf1)); Object lhs = cap.getAttributes().get(sf.getName()); if (lhs != null) { matched = compare(lhs, sf.getValue(), sf.getOperation());
List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (int i = 0; matched && (i < sfs.size()); i++) { matched = matchesInternal(cap, sfs.get(i)); List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (int i = 0; !matched && (i < sfs.size()); i++) { matched = matchesInternal(cap, sfs.get(i)); List<SimpleFilter> sfs = (List<SimpleFilter>) sf.getValue(); for (SimpleFilter sf1 : sfs) { matched = !(matchesInternal(cap, sf1)); Object lhs = cap.getAttributes().get(sf.getName()); if (lhs != null) { matched = compare(lhs, sf.getValue(), sf.getOperation());