public boolean verifyActivationPolicy(String policy) { Parameters map = parseHeader(policy); if (map.size() == 0) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " is set but has no argument %s", policy); else if (map.size() > 1) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " has too many arguments %s", policy); else { Map<String, String> s = map.get("lazy"); if (s == null) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " set but is not set to lazy: %s", policy); else return true; } return false; }
public boolean verifyActivationPolicy(String policy) { Parameters map = parseHeader(policy); if (map.size() == 0) warning("Bundle-ActivationPolicy is set but has no argument %s", policy); else if (map.size() > 1) warning("Bundle-ActivationPolicy has too many arguments %s", policy); else { Map<String,String> s = map.get("lazy"); if (s == null) warning("Bundle-ActivationPolicy set but is not set to lazy: %s", policy); else return true; } return false; }
public boolean verifyActivationPolicy(String policy) { Parameters map = parseHeader(policy); if (map.size() == 0) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " is set but has no argument %s", policy); else if (map.size() > 1) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " has too many arguments %s", policy); else { Map<String,String> s = map.get("lazy"); if (s == null) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " set but is not set to lazy: %s", policy); else return true; } return false; }
public boolean verifyActivationPolicy(String policy) { Parameters map = parseHeader(policy); if (map.size() == 0) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " is set but has no argument %s", policy); else if (map.size() > 1) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " has too many arguments %s", policy); else { Map<String,String> s = map.get("lazy"); if (s == null) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " set but is not set to lazy: %s", policy); else return true; } return false; }
public boolean verifyActivationPolicy(String policy) { Parameters map = parseHeader(policy); if (map.size() == 0) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " is set but has no argument %s", policy); else if (map.size() > 1) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " has too many arguments %s", policy); else { Map<String, String> s = map.get("lazy"); if (s == null) warning(Constants.BUNDLE_ACTIVATIONPOLICY + " set but is not set to lazy: %s", policy); else return true; } return false; }
private void verifySymbolicName() { Parameters bsn = parseHeader(main.get(Analyzer.BUNDLE_SYMBOLICNAME)); if (!bsn.isEmpty()) { if (bsn.size() > 1) error("More than one BSN specified " + bsn); String name = bsn.keySet().iterator().next(); if (!isBsn(name)) { error("Symbolic Name has invalid format: " + name); } } }
private void verifySymbolicName() { Parameters bsn = parseHeader(main.get(Analyzer.BUNDLE_SYMBOLICNAME)); if (!bsn.isEmpty()) { if (bsn.size() > 1) error("More than one BSN specified " + bsn); String name = bsn.keySet().iterator().next(); if (!isBsn(name)) { error("Symbolic Name has invalid format: " + name); } } }
private void verifySymbolicName() { Parameters bsn = parseHeader(main.get(Analyzer.BUNDLE_SYMBOLICNAME)); if (!bsn.isEmpty()) { if (bsn.size() > 1) error("More than one BSN specified " + bsn); String name = bsn.keySet().iterator().next(); if (!isBsn(name)) { error("Symbolic Name has invalid format: " + name); } } }
private void verifySymbolicName() { Parameters bsn = parseHeader(main.get(Constants.BUNDLE_SYMBOLICNAME)); if (!bsn.isEmpty()) { if (bsn.size() > 1) error("More than one BSN specified %s", bsn); String name = bsn.keySet() .iterator() .next(); if (!isBsn(name)) { error("Symbolic Name has invalid format: %s", name); } } }
void doBREE(Domain domain, List< ? super Requirement> reqs) throws Exception { Parameters brees = domain.getBundleRequiredExecutionEnvironment(); final String filter; if (!brees.isEmpty()) { if (brees.size() == 1) { String bree = brees.keySet().iterator().next(); filter = EE.parseBREE(bree).toFilter(); } else { StringBuilder builder = new StringBuilder().append("(|"); for (String bree : brees.keySet()) { bree = Processor.removeDuplicateMarker(bree); builder.append(EE.parseBREE(bree).toFilter()); } builder.append(')'); filter = builder.toString(); } Requirement requirement = new CapReqBuilder(Namespaces.NS_EE).addDirective(Namespaces.DIRECTIVE_FILTER, filter).buildRequirement(); reqs.add(requirement); } }
private void verifySymbolicName() { Parameters bsn = parseHeader(main.get(Constants.BUNDLE_SYMBOLICNAME)); if (!bsn.isEmpty()) { if (bsn.size() > 1) error("More than one BSN specified %s", bsn); String name = bsn.keySet() .iterator() .next(); if (!isBsn(name)) { error("Symbolic Name has invalid format: %s", name); } } }
/** * Check if we need to calculate any checksums. * * @param dot * @throws Exception */ private void doDigests(Jar dot) throws Exception { Parameters ps = OSGiHeader.parseHeader(getProperty(DIGESTS)); if (ps.isEmpty()) return; trace("digests %s", ps); String[] digests = ps.keySet().toArray(new String[ps.size()]); dot.setDigestAlgorithms(digests); }
/** * Check if we need to calculate any checksums. * * @param dot * @throws Exception */ private void doDigests(Jar dot) throws Exception { Parameters ps = OSGiHeader.parseHeader(getProperty(DIGESTS)); if (ps.isEmpty()) return; trace("digests %s", ps); String[] digests = ps.keySet().toArray(new String[ps.size()]); dot.setDigestAlgorithms(digests); }
/** * Check if we need to calculate any checksums. * * @param dot * @throws Exception */ private void doDigests(Jar dot) throws Exception { Parameters ps = OSGiHeader.parseHeader(getProperty(DIGESTS)); if (ps.isEmpty()) return; trace("digests %s", ps); String[] digests = ps.keySet().toArray(new String[ps.size()]); dot.setDigestAlgorithms(digests); }
public boolean isEqual(Parameters other) { if (this == other) return true; if (other == null || size() != other.size()) return false; if (isEmpty()) return true; SortedList<String> l = new SortedList<>(keySet()); SortedList<String> lo = new SortedList<>(other.keySet()); if (!l.isEqual(lo)) return false; for (String key : keySet()) { Attrs value = get(key); Attrs valueo = other.get(key); if (!(value == valueo || (value != null && value.isEqual(valueo)))) return false; } return true; }
public boolean isEqual(Parameters other) { if (this == other) return true; if (size() != other.size()) return false; if (isEmpty()) return true; SortedList<String> l = new SortedList<String>(keySet()); SortedList<String> lo = new SortedList<String>(other.keySet()); if (!l.isEqual(lo)) return false; for (String key : keySet()) { if (!get(key).isEqual(other.get(key))) return false; } return true; }
public boolean isEqual(Parameters other) { if (this == other) return true; if (other == null || size() != other.size()) return false; if (isEmpty()) return true; SortedList<String> l = new SortedList<>(keySet()); SortedList<String> lo = new SortedList<>(other.keySet()); if (!l.isEqual(lo)) return false; for (String key : keySet()) { Attrs value = get(key); Attrs valueo = other.get(key); if (!(value == valueo || (value != null && value.isEqual(valueo)))) return false; } return true; }
public boolean isEqual(Parameters other) { if (this == other) return true; if (other == null || size() != other.size()) return false; if (isEmpty()) return true; SortedList<String> l = new SortedList<String>(keySet()); SortedList<String> lo = new SortedList<String>(other.keySet()); if (!l.isEqual(lo)) return false; for (String key : keySet()) { Attrs value = get(key); Attrs valueo = other.get(key); if (!(value == valueo || (value != null && value.isEqual(valueo)))) return false; } return true; }
public boolean isEqual(Parameters other) { if (this == other) return true; if (other == null || size() != other.size()) return false; if (isEmpty()) return true; SortedList<String> l = new SortedList<>(keySet()); SortedList<String> lo = new SortedList<>(other.keySet()); if (!l.isEqual(lo)) return false; for (String key : keySet()) { Attrs value = get(key); Attrs valueo = other.get(key); if (!(value == valueo || (value != null && value.isEqual(valueo)))) return false; } return true; }
public boolean isEqual(Parameters other) { if (this == other) return true; if (other == null || size() != other.size()) return false; if (isEmpty()) return true; SortedList<String> l = new SortedList<>(keySet()); SortedList<String> lo = new SortedList<>(other.keySet()); if (!l.isEqual(lo)) return false; for (String key : keySet()) { Attrs value = get(key); Attrs valueo = other.get(key); if (!(value == valueo || (value != null && value.isEqual(valueo)))) return false; } return true; }