package com.symcor.od.common.soap.message;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2002</p>
 * <p>Company: </p>
 * @author unascribed
 * @version 1.0
 */

public final class Hit {


    public Hit() {
    }

    public Hit(String docId, String mimeType) {
        this.docId = docId;
        this.mimeType = mimeType;
    }

    public String getDocId () {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    public String getMimeType() {
        return mimeType;
    }

    public void setMimeType (String mimeType) {
        this.mimeType = mimeType;
    }

    public String[] getDisplayValues () {
        return displayValues;
    }

    public void setDisplayValues (String[] displayValues) {
        this.displayValues = displayValues;
    }

      public String toString() {
         StringBuffer sb = new StringBuffer("\nHit: ");
         sb.append("\ndocId: " + docId);
         sb.append("\nmime type: " + this.mimeType);
         if (displayValues != null) {
            for (int i=0; i<displayValues.length; i++) {
                sb.append("\n" + displayValues[i]);
            }
         } else {
            sb.append("\ndisplayValues[]: null");
         }
         return sb.toString();
      }

    private String docId;
    private String mimeType;
    private String[] displayValues;


  // Fields
//  private ODServer m_server;
//  private ODFolder m_folder;
//  private String docid;
//  private int m_docLocation;
//  private char m_docType;
//  private Vector m_notes;
//  private byte[] m_data;
//  private String m_mimetype;

  // Constructors
//  protected ODHit(ODServer p0, ODFolder p1, String p2, char p3, String[] p4) throws Exception { }

  // Methods
//  public synchronized void addNote(ODNote p0) throws Exception { }
//  public String getDisplayValue(String p0) { }
//  public Enumeration getDisplayValues() { }
//  public String getDocId() { }
//  public int getDocLocation() { }
//  public char getDocType() { }
//  public String getMimeType() { }
 // public synchronized Vector getNotes() throws Exception { }
 // public synchronized byte[] retrieve(String p0) throws Exception { }
 // public synchronized void update(Hashtable p0) throws Exception { }

}