/** * Get the attrs for a gestalt part */ public Attrs getGestalt(String part) { return getGestalt().get(part); }
/** * Get the attrs for a gestalt part */ public Attrs getGestalt(String part) { return getGestalt().get(part); }
/** * Get the attrs for a gestalt part */ public Attrs getGestalt(String part) { return getGestalt().get(part); }
/** * Get the attrs for a gestalt part */ public Attrs getGestalt(String part) { return getGestalt().get(part); }
/** * Merge all attributes of the given parameters with this */ public void mergeWith(Parameters other, boolean override) { for (Map.Entry<String, Attrs> e : other.entrySet()) { Attrs existing = get(e.getKey()); if (existing == null) { put(e.getKey(), new Attrs(e.getValue())); } else existing.mergeWith(e.getValue(), override); } }
/** * Merge all attributes of the given parameters with this */ public void mergeWith(Parameters other, boolean override) { for (Map.Entry<String, Attrs> e : other.entrySet()) { Attrs existing = get(e.getKey()); if (existing == null) { put(e.getKey(), new Attrs(e.getValue())); } else existing.mergeWith(e.getValue(), override); } }
/** * Merge all attributes of the given parameters with this */ public void mergeWith(Parameters other, boolean override) { for (Map.Entry<String, Attrs> e : other.entrySet()) { Attrs existing = get(e.getKey()); if (existing == null) { put(e.getKey(), new Attrs(e.getValue())); } else existing.mergeWith(e.getValue(), override); } }
/** * Merge all attributes of the given parameters with this */ public void mergeWith(Parameters other, boolean override) { for (Map.Entry<String, Attrs> e : other.entrySet()) { Attrs existing = get(e.getKey()); if (existing == null) { put(e.getKey(), new Attrs(e.getValue())); } else existing.mergeWith(e.getValue(), override); } }
/** * Merge all attributes of the given parameters with this */ public void mergeWith(Parameters other, boolean override) { for ( Map.Entry<String,Attrs> e : other.entrySet()) { Attrs existing = get(e.getKey()); if ( existing == null) { put(e.getKey(), new Attrs(e.getValue())); } else existing.mergeWith(e.getValue(), override); } } }
/** * Merge all attributes of the given parameters with this */ public void mergeWith(Parameters other, boolean override) { for ( Map.Entry<String,Attrs> e : other.entrySet()) { Attrs existing = get(e.getKey()); if ( existing == null) { put(e.getKey(), new Attrs(e.getValue())); } else existing.mergeWith(e.getValue(), override); } } }
/** * Add a gestalt to all workspaces. The gestalt is a set of parts describing * the environment. Each part has a name and optionally attributes. This * method adds a gestalt to the VM. Per workspace it is possible to augment * this. */ public static void addGestalt(String part, Attrs attrs) { Attrs already = overallGestalt.get(part); if (attrs == null) attrs = new Attrs(); if (already != null) { already.putAll(attrs); } else already = attrs; overallGestalt.put(part, already); }
/** * Add a gestalt to all workspaces. The gestalt is a set of parts describing * the environment. Each part has a name and optionally attributes. This * method adds a gestalt to the VM. Per workspace it is possible to augment * this. */ public static void addGestalt(String part, Attrs attrs) { Attrs already = overallGestalt.get(part); if (attrs == null) attrs = new Attrs(); if (already != null) { already.putAll(attrs); } else already = attrs; overallGestalt.put(part, already); }
/** * Add a gestalt to all workspaces. The gestalt is a set of parts describing * the environment. Each part has a name and optionally attributes. This * method adds a gestalt to the VM. Per workspace it is possible to augment * this. */ public static void addGestalt(String part, Attrs attrs) { Attrs already = overallGestalt.get(part); if (attrs == null) attrs = new Attrs(); if (already != null) { already.putAll(attrs); } else already = attrs; overallGestalt.put(part, already); }
/** * Add a gestalt to all workspaces. The gestalt is a set of parts describing * the environment. Each part has a name and optionally attributes. This * method adds a gestalt to the VM. Per workspace it is possible to augment * this. */ public static void addGestalt(String part, Attrs attrs) { Attrs already = overallGestalt.get(part); if (attrs == null) attrs = new Attrs(); if (already != null) { already.putAll(attrs); } else already = attrs; overallGestalt.put(part, already); }
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 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; }