001/** 002 * Copyright (C) 2014 Universidade de Aveiro, DETI/IEETA, Bioinformatics Group - http://bioinformatics.ua.pt/ 003 * 004 * This file is part of Dicoogle/dicoogle-sdk-ext. 005 * 006 * Dicoogle/dicoogle-sdk-ext is free software: you can redistribute it and/or modify 007 * it under the terms of the GNU General Public License as published by 008 * the Free Software Foundation, either version 3 of the License, or 009 * (at your option) any later version. 010 * 011 * Dicoogle/dicoogle-sdk-ext is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 014 * GNU General Public License for more details. 015 * 016 * You should have received a copy of the GNU General Public License 017 * along with Dicoogle. If not, see <http://www.gnu.org/licenses/>. 018 */ 019/* 020 * To change this template, choose Tools | Templates 021 * and open the template in the editor. 022 */ 023package pt.ua.dicoogle.sdk.p2p.Messages; 024 025/** 026 * 027 * @author Carlos Ferreira 028 * @author Pedro Bento 029 */ 030public class MessageFields 031{ 032 /** 033 * Root element of every xml messages 034 */ 035 public static final String MESSAGE = "Message"; 036 037 /** 038 * Definition of the message type 039 */ 040 public static final String MESSAGE_TYPE = "MessageType"; 041 /** 042 * The number of the query 043 */ 044 public static final String QUERY_NUMBER = "QueryNumber"; 045 /** 046 * The field where the query value is declared 047 */ 048 public static final String QUERY = "Query"; 049 /** 050 * The list of search results 051 */ 052 public static final String SEARCH_RESULTS = "SearchResults"; 053 public static final String EXTRAFIELD = "Extrafield"; 054 055 /** 056 * One result of the search. 057 */ 058 public static final String SEARCH_RESULT = "SearchResult"; 059 060 public static final String FILE_REQUESTED = "FileRequested"; 061}