1 /*******************************************************************************
2 * Copyright (c) 2011 Association for Decentralized Information Management in
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.workbench.search;
14 import org.simantics.utils.datastructures.map.Tuple;
17 * @author Tuukka Lehtonen
19 public class QueryResult extends Tuple {
21 public QueryResult(String html, int hits) {
22 this("",html,"", hits);
25 public QueryResult(String header, String content, String footer, int hits) {
26 super(header,content,footer, hits);
29 public String getHeader() {
30 return (String) getField(0);
32 public String getContent() {
33 return (String) getField(1);
36 public String getFooter() {
37 return (String) getField(2);
40 public String getHtml() {
41 return getHeader() + getContent() + getFooter();
44 public int getHitCount() {
45 return (Integer) getField(3);