/** * Create child scope of room type, with the given name. * * @param name child scope name * @return * <pre> * true * </pre> * on success, * <pre> * false * </pre> * otherwise */ public boolean createChildScope(String name) { // quick lookup by name log.debug("createChildScope: {}", name); if (children.hasName(name)) { log.debug("Scope: {} already exists, children: {}", name, children.getNames()); } else { return addChildScope(new Builder(this, ScopeType.ROOM, name, false).build()); } return false; }
/** * Check whether scope has child scope with given name * * @param name Child scope name * @return * <pre> * true * </pre> * if scope has child node with given name, * <pre> * false * </pre> * otherwise */ public boolean hasChildScope(String name) { log.debug("Has child scope? {} in {}", name, this); return children.hasName(name); }