001/**
002 * Copyright 2014 Tampere University of Technology, Pori Department
003 * 
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 *   http://www.apache.org/licenses/LICENSE-2.0
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package service.tut.pori.contentsuggest;
017
018/**
019 * Definitions for contentsuggest.
020 *
021 */
022public final class Definitions {
023  /**
024   * 
025   */
026  private Definitions(){
027    // nothing needed
028  }
029  
030  /* services */
031  /** service name declaration */
032  public static final String SERVICE_CS = "cs";
033  
034  /* methods */
035  /** service method declaration */
036  public static final String METHOD_SUGGEST = "suggest";
037  
038  /* parameters */
039  /** service method parameter declaration */
040  public static final String PARAMETER_QUERY = "query";
041
042  /* xml elements */
043  /** xml element declaration */
044  public static final String ELEMENT_AUTOCOMPLETE_RESULTS = "autoCompleteResults";
045  /** xml element declaration */
046  public static final String ELEMENT_COLLATION = "collation";
047  /** xml element declaration */
048  public static final String ELEMENT_SUGGESTION = "suggestion";
049  /** xml element declaration */
050  public static final String ELEMENT_SUGGESTION_LIST = "suggestionList";
051  
052  /* common */
053  /** default query limits */
054  public static final String DEFAULT_LIMITS = "0-9";
055  /** separator for multiple queries */
056  public static final char QUERY_SEPARATOR = ' ';
057}