X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.workbench.search%2Fsrc%2Forg%2Fsimantics%2Fworkbench%2Fsearch%2FQueryResult.java;fp=bundles%2Forg.simantics.workbench.search%2Fsrc%2Forg%2Fsimantics%2Fworkbench%2Fsearch%2FQueryResult.java;h=27daf96f187077faa8e7bf4fc6da6c2f7fc042cb;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=7cb43919440388b38eb5127f6ece93456708d843;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.workbench.search/src/org/simantics/workbench/search/QueryResult.java b/bundles/org.simantics.workbench.search/src/org/simantics/workbench/search/QueryResult.java index 7cb439194..27daf96f1 100644 --- a/bundles/org.simantics.workbench.search/src/org/simantics/workbench/search/QueryResult.java +++ b/bundles/org.simantics.workbench.search/src/org/simantics/workbench/search/QueryResult.java @@ -1,48 +1,48 @@ -/******************************************************************************* - * Copyright (c) 2011 Association for Decentralized Information Management in - * Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.workbench.search; - -import org.simantics.utils.datastructures.map.Tuple; - -/** - * @author Tuukka Lehtonen - */ -public class QueryResult extends Tuple { - - public QueryResult(String html, int hits) { - this("",html,"", hits); - } - - public QueryResult(String header, String content, String footer, int hits) { - super(header,content,footer, hits); - } - - public String getHeader() { - return (String) getField(0); - } - public String getContent() { - return (String) getField(1); - } - - public String getFooter() { - return (String) getField(2); - } - - public String getHtml() { - return getHeader() + getContent() + getFooter(); - } - - public int getHitCount() { - return (Integer) getField(3); - } - +/******************************************************************************* + * Copyright (c) 2011 Association for Decentralized Information Management in + * Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.workbench.search; + +import org.simantics.utils.datastructures.map.Tuple; + +/** + * @author Tuukka Lehtonen + */ +public class QueryResult extends Tuple { + + public QueryResult(String html, int hits) { + this("",html,"", hits); + } + + public QueryResult(String header, String content, String footer, int hits) { + super(header,content,footer, hits); + } + + public String getHeader() { + return (String) getField(0); + } + public String getContent() { + return (String) getField(1); + } + + public String getFooter() { + return (String) getField(2); + } + + public String getHtml() { + return getHeader() + getContent() + getFooter(); + } + + public int getHitCount() { + return (Integer) getField(3); + } + } \ No newline at end of file