Subversion Repositories bacoAlunos

Rev

Rev 485 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package pt.estgp.estgweb.services.common;

import java.util.List;
import java.util.ArrayList;

/**
 * @author Jorge Machado
 * @date 24/Abr/2008
 * @time 14:58:03
 * @see pt.estgp.estgweb.services.common
 */

public interface IResult
{
    public 1.5.0/docs/api/java/lang/String.html">String getTitle();
    public boolean isTitleKey();
    public 1.5.0/docs/api/java/lang/String.html">String getSubTitle();
    public boolean isSubTitleKey();
    public 1.5.0/docs/api/java/lang/String.html">String getBestFragments();
    public 1.5.0/docs/api/java/lang/String.html">String getText();
    public 1.5.0/docs/api/java/lang/String.html">String getTextSummary();
    public boolean isTextKey();
    public 1.5.0/docs/api/java/lang/String.html">String getUrl();
    public boolean isAbsoluteUrl();
    public LabelGroup getSubTitlesGroup();
    public 1.5.0/docs/api/java/lang/String.html">String getDate();
    public 1.5.0/docs/api/java/lang/String.html">String getCreator();
    public 1.5.0/docs/api/java/lang/String.html">String getDirectory();
    public 1.5.0/docs/api/java/lang/String.html">String getSizeKb();
    public 1.5.0/docs/api/java/lang/String.html">String getMime();

    /**
     * Class to support groups of labels
     * usefull to add groups of message keys
     */

    public static class LabelGroup
    {
        private 1.5.0/docs/api/java/lang/String.html">String title;
        private boolean key;

        private List<Label> labels;

        public LabelGroup()
        {
            labels = new ArrayList<Label>();
        }

        public List<Label> getLabels()
        {
            return labels;
        }

        public void setLabels(List<Label> labels)
        {
            this.labels = labels;
        }


        public 1.5.0/docs/api/java/lang/String.html">String getTitle()
        {
            return title;
        }

        public void setTitle(1.5.0/docs/api/java/lang/String.html">String title)
        {
            this.title = title;
        }

        public boolean isKey()
        {
            return key;
        }

        public void setKey(boolean key)
        {
            this.key = key;
        }
    }
    public static class 1.5.0/docs/api/java/awt/Label.html">Label
    {
        private 1.5.0/docs/api/java/lang/String.html">String label;
        private boolean key;


        public 1.5.0/docs/api/java/awt/Label.html">Label(1.5.0/docs/api/java/lang/String.html">String label, boolean key)
        {
            this.label = label;
            this.key = key;
        }

        public 1.5.0/docs/api/java/lang/String.html">String getLabel()
        {
            return label;
        }

        public void setLabel(1.5.0/docs/api/java/lang/String.html">String label)
        {
            this.label = label;
        }

        public boolean isKey()
        {
            return key;
        }

        public void setKey(boolean key)
        {
            this.key = key;
        }
    }
}