public final static Namespace addNamespace0(Namespace namespace) { if (namespace == null) return null; return (Namespace) namespaces.put(namespace.getName(), namespace); }
protected final static Namespace getNamespace0(Namespace n) { if (n == null) return null; return (Namespace) namespaces.get(n.getName()); }
/** * @since 3.4 */ public final static Namespace removeNamespace0(Namespace n) { if (n == null) return null; return (Namespace) namespaces.remove(n.getName()); }
public final static boolean containsNamespace0(Namespace n) { if (n == null) return false; return namespaces.containsKey(n.getName()); }
protected final static Namespace getNamespace0(Namespace n) { if (n == null) return null; return (Namespace) namespaces.get(n.getName()); }
/** * @since 3.4 */ public final static Namespace removeNamespace0(Namespace n) { if (n == null) return null; return (Namespace) namespaces.remove(n.getName()); }
public final static Namespace addNamespace0(Namespace namespace) { if (namespace == null) return null; return (Namespace) namespaces.put(namespace.getName(), namespace); }
public final static boolean containsNamespace0(Namespace n) { if (n == null) return false; return namespaces.containsKey(n.getName()); }
public Object addingService(ServiceReference reference) { Namespace ns = (Namespace) context .getService(reference); if (ns != null && ns.getName() != null) IDFactory.addNamespace0(ns); return ns; }
public Object addingService(ServiceReference reference) { Namespace ns = (Namespace) context.getService(reference); if (ns != null && ns.getName() != null) IDFactory.addNamespace0(ns); return ns; }
public ID createID(Namespace n, Object[] args) throws IDCreateException { // Verify namespace is non-null if (n == null) logAndThrow("Namespace cannot be null", null); //$NON-NLS-1$ initialize(); // Make sure that namespace is in table of known namespace. If not, // throw...we don't create any instances that we don't know about! Namespace ns = getNamespace0(n); if (ns == null) logAndThrow("Namespace " + n.getName() + " not found", null); //$NON-NLS-1$ return ns.createInstance(args); }
public ID createID(Namespace n, Object[] args) throws IDCreateException { // Verify namespace is non-null if (n == null) logAndThrow("Namespace cannot be null", null); //$NON-NLS-1$ initialize(); // Make sure that namespace is in table of known namespace. If not, // throw...we don't create any instances that we don't know about! Namespace ns = getNamespace0(n); if (ns == null) logAndThrow("Namespace " + n.getName() + " not found", null); //$NON-NLS-1$ return ns.createInstance(args); }