Find workspace by title.

@param title Match this title
@return Matching Workspace or null if none found.
974543
public Workspace findWorkspace(final String title) {
        for (final Object element : workspaces) {
            final Workspace ws = (Workspace) element;
            if (title.equals(ws.getTitle())) {
                return ws;
            }
        }
        return null;
    }
477686
def find_by_workspace(self, workspace, params={}, **options): 
        
        path = "/workspaces/%s/tags" % (workspace)
        return self.client.get_collection(path, params, **options)
608185
public void setTitle(final String title) {
        if (title == null && this.title == null) {
            return;
        } else if (title == null) {
            removeChild(this.title);
            this.title = null;
        } else if (this.title == null) {
            this.title = new KeyValueNode<String>(CommonConstants.CS_TITLE_TITLE, title);
            appendChild(this.title, false);
        } else {
            this.title.setValue(title);
        }
    }
612251
public void selectWindowByTitle(final String title) {
		String currentWindow = driver.getWindowHandle();
		Set<String> handles = driver.getWindowHandles();
		if (!handles.isEmpty()) {
			for (String windowId : handles) {
				if (!driver.switchTo().window(windowId).getTitle()
						.equals(title)) {
					driver.switchTo().window(currentWindow);
				}
			}
		}
	}
1146326
public static void waitUntilPageTitleContains(final String pageTitle) {
        logger.entering(pageTitle);
        Preconditions
                .checkArgument(StringUtils.isNotEmpty(pageTitle), "Expected Page title cannot be null (or) empty.");
        ExpectedCondition<Boolean> condition = ExpectedConditions.titleContains(pageTitle);
        waitForCondition(condition);
        logger.exiting();
    }
54196
public static String resolveTitle(final String title, final String reference) {
        if (StringUtils.isBlank(title) && !StringUtils.isBlank(reference)) {
            // If there is no title, assume the reference is a path and take the last part (the "file name")
            final String[] splitReference = PATH_SEPARATOR_REGEX.split(reference);
            final String lastPart = splitReference[splitReference.length - 1];

            return StringUtils.isBlank(lastPart) || reference.endsWith("/") || reference.endsWith("\\") ? reference : lastPart;
        } else {
            return title;
        }
    }
725702
public void title(String title) {
        Validate.notNull(title);
        Element titleEl = getElementsByTag("title").first();
        if (titleEl == null) { // add to head
            head().appendElement("title").text(title);
        } else {
            titleEl.text(title);
        }
    }
199009
public final void setTitle(final String title) {
        if (SwingUtilities.isEventDispatchThread()) {
            setTitleIntern(title);
        } else {
            try {
                SwingUtilities.invokeLater(new Runnable() {
                    public void run() {
                        setTitleIntern(title);
                    }
                });
            } catch (final Exception ex) {
                ignore();
            }
        }
    }
305940
public Page title(String title)
    {
        properties.put(Title,title);
        String heading = (String)properties.get(Heading);
        if (heading==null||heading.equals(NoTitle))
            properties.put(Heading,title);
        return this;
    }
596663
public MaterialSection getSectionByTitle(String title) {

        for(MaterialSection section : sectionList) {
            if(section.getTitle().equals(title)) {
                return section;
            }
        }

        for(MaterialSection section : bottomSectionList) {
            if(section.getTitle().equals(title))
                return section;
        }

        return null;
    }
353743
public Object getTitleOrName() {

        String result = getTitle();
        if (CmsStringUtil.isEmptyOrWhitespaceOnly(result)) {
            result = getPath();
        }
        return result;
    }
369920
public Collection findCollection(final String title, final String contentType) {
        for (final Object element : collections) {
            final Collection col = (Collection) element;
            if (title != null && col.accepts(contentType)) {
                return col;
            } else if (col.accepts(contentType)) {
                return col;
            }
        }
        return null;
    }
16579
def find_by_title(self, title):
        
        for entry in self.entries:
            if entry.title == title:
                return entry
        raise EntryNotFoundError("Entry not found for title: %s" % title)
1231445
@Override
    public void setTitle(final String title) {
        if (this.title == null) {
            this.title = new SyndContentImpl();
        }
        this.title.setValue(title);
    }
866751
def search(title)
      results = get '/', { s: title }
      if results[:search]
        # Return the title if there is only one result, otherwise return the seach results
        search = results.search
        search.size == 1 ? title(search[0].title) : search
      else
        results
      end
    end
926590
protected static WebDriver windowByTitle(WebDriver driver, String title) {
    Set<String> windowHandles = driver.getWindowHandles();

    for (String windowHandle : windowHandles) {
      driver.switchTo().window(windowHandle);
      if (title.equals(driver.getTitle())) {
        return driver;
      }
    }
    throw new NoSuchWindowException("Window with title not found: " + title);
  }
97982
public void setWindowTitle(String title) {

        /* HACK: Using a Label destroys the layout for some reason, so we resort to setting the caption directly in the
         element via an explicit JavaScript call. */
        m_windowTitle = title;
        JavaScript.eval(
            "document.querySelector('#"
                + getId()
                + " .fakewindowheader').innerHTML = '"
                + StringEscapeUtils.escapeEcmaScript(title)
                + "'");
    }