public InvService findNestedService(String name) { for (InvService s : nestedServices) { if (s.getName().equals(name)) return s; if (s.type == ServiceType.COMPOUND) { InvService result = s.findNestedService(name); if (result != null) return result; } } return null; }
public InvService findNestedService(String name) { for (InvService s : nestedServices) { if (s.getName().equals(name)) return s; if (s.type == ServiceType.COMPOUND) { InvService result = s.findNestedService(name); if (result != null) return result; } } return null; }
public InvService findNestedService(String name) { for (InvService s : nestedServices) { if (s.getName().equals(name)) return s; if (s.type == ServiceType.COMPOUND) { InvService result = s.findNestedService(name); if (result != null) return result; } } return null; }
/** * Find the named service declared in the top level of this catalog. * * @param name match this name * @return service that matches the given name, or null if none found. */ public InvService findService(String name) { if (name == null) return null; for (InvService s : services) { if (name.equals(s.getName())) return s; // look for nested servers if (s.getServiceType() == ServiceType.COMPOUND) { InvService result = s.findNestedService(name); if (result != null) return result; } } return null; }
/** * Find the named service declared in the top level of this catalog. * * @param name match this name * @return service that matches the given name, or null if none found. */ public InvService findService(String name) { if (name == null) return null; for (InvService s : services) { if (name.equals(s.getName())) return s; // look for nested servers if (s.getServiceType() == ServiceType.COMPOUND) { InvService result = s.findNestedService(name); if (result != null) return result; } } return null; }
/** * Find the named service declared in the top level of this catalog. * * @param name match this name * @return service that matches the given name, or null if none found. */ public InvService findService(String name) { if (name == null) return null; for (InvService s : services) { if (name.equals(s.getName())) return s; // look for nested servers if (s.getServiceType() == ServiceType.COMPOUND) { InvService result = s.findNestedService(name); if (result != null) return result; } } return null; }