⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 documentquery.java

📁 google gdata API 很好用的API
💻 JAVA
字号:
/* Copyright (c) 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *     http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package com.google.gdata.client;import com.google.gdata.client.Query;import java.net.URL;/** * Simple class for document-based queries, i.e. things that have titles. * *  */public class DocumentQuery extends Query {  /**   * The URI parameter for querying the title or name of a document.   */  public static final String TITLE = "title";  /**   * The URI parameter for a boolean flag for whether the title should be   * matched exactly (case-insensitive or sensitive depending on service).   */  public static final String TITLE_EXACT = "title-exact";  /**   * Constructs a query for querying spreadsheets that you have access to.   *    * @param feedUrl the feed's URI   */  public DocumentQuery(URL feedUrl) {    super(feedUrl);  }  /**   * Sets the full-text title search.   *    * @param titleQuery the title query   */  public void setTitleQuery(String titleQuery) {    setStringCustomParameter(TITLE, titleQuery);  }  /**   * Gets full-text title query.   */  public String getTitleQuery() {    return getStringCustomParameter(TITLE);  }  /**   * Sets whether the title match should be exact (instead of keyword-based).   *    * By default, the match is exact.   *    * @param exact whether the results should be exact   */  public void setTitleExact(boolean exact) {    setStringCustomParameter(TITLE_EXACT, exact ? "true" : null);  }  /**   * Gets whether the query should be exact (rather than keyword-based).   *    * @return whether the results should be exact   */  public boolean isTitleExact() {    return getStringCustomParameter(TITLE_EXACT) != null;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -