public String get(String key, String deflt) { String result = get(key); if (result != null) return result; return deflt; }
public String get(String key, String deflt) { String result = get(key); if (result != null) return result; return deflt; }
public String get(String key, String deflt) { String result = get(key); if (result != null) return result; return deflt; }
public String translate(String key, String deflt) { String value = get(key); if (value == null) return deflt; if (value.indexOf('%') >= 0) { value = value.trim() .substring(1); return translation.getProperty(value, value); } return null; }
public String translate(String key, String deflt) { String value = get(key); if ( value == null) return deflt; if ( value.indexOf('%')>=0) { value = value.trim().substring(1); return translation.getProperty(value,value); } return null; }
public void copyFrom(Domain domain) { for (String key : domain) { set(key, domain.get(key)); } }
public boolean verifyActivationPolicy() { String policy = main.get(Constants.BUNDLE_ACTIVATIONPOLICY); if (policy == null) return true; return verifyActivationPolicy(policy); }
public boolean verifyActivationPolicy() { String policy = main.get(Constants.BUNDLE_ACTIVATIONPOLICY); if (policy == null) return true; return verifyActivationPolicy(policy); }
public boolean verifyActivationPolicy() { String policy = main.get(Constants.BUNDLE_ACTIVATIONPOLICY); if (policy == null) return true; return verifyActivationPolicy(policy); }
/** * Indicates that this run should ignore errors and succeed anyway * * @return true if this processor should return errors */ public boolean isFailOk() { return Processor.isTrue(get(FAIL_OK)); }
/** * Indicates that this run should ignore errors and succeed anyway * * @return true if this processor should return errors */ public boolean isFailOk() { return Processor.isTrue(get(FAIL_OK)); }
public void copyFrom(Domain domain) { for (String key : domain) { set(key, domain.get(key)); } }
/** * Indicates that this run should ignore errors and succeed anyway * * @return true if this processor should return errors */ public boolean isFailOk() { return Processor.isTrue(get(FAIL_OK)); }
public boolean verifyActivationPolicy() { String policy = main.get(Constants.BUNDLE_ACTIVATIONPOLICY); if (policy == null) return true; return verifyActivationPolicy(policy); }
/** * Indicates that this run should ignore errors and succeed anyway * * @return true if this processor should return errors */ public boolean isFailOk() { return Processor.isTrue(get(FAIL_OK)); }
void doImportService(Domain domain, List< ? super Requirement> reqs) throws Exception { @SuppressWarnings("deprecation") Parameters imports = new Parameters(domain.get(Constants.IMPORT_SERVICE)); for (Entry<String,Attrs> imp : imports.entrySet()) { String service = Processor.removeDuplicateMarker(imp.getKey()); StringBuilder filter = new StringBuilder(); filter.append('(').append(Constants.OBJECTCLASS).append('=').append(service).append(')'); CapReqBuilder builder = new CapReqBuilder(Namespaces.NS_SERVICE).addDirective(Namespaces.DIRECTIVE_FILTER, filter.toString()).addDirective(Namespaces.DIRECTIVE_EFFECTIVE, Namespaces.EFFECTIVE_ACTIVE); reqs.add(builder.buildRequirement()); } }
void doImportService(Domain domain, List< ? super Requirement> reqs) throws Exception { @SuppressWarnings("deprecation") Parameters imports = new Parameters(domain.get(Constants.IMPORT_SERVICE)); for (Entry<String,Attrs> imp : imports.entrySet()) { String service = Processor.removeDuplicateMarker(imp.getKey()); StringBuilder filter = new StringBuilder(); filter.append('(').append(Constants.OBJECTCLASS).append('=').append(service).append(')'); CapReqBuilder builder = new CapReqBuilder(Namespaces.NS_SERVICE).addDirective(Namespaces.DIRECTIVE_FILTER, filter.toString()).addDirective(Namespaces.DIRECTIVE_EFFECTIVE, Namespaces.EFFECTIVE_ACTIVE); reqs.add(builder.buildRequirement()); } }
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); } } }