// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst 
// Source File Name:   GoogleSearchResult.java
// Class Version:      45.3

package com.google.soap.search;

import java.io.StringWriter;

// Referenced classes of package com.google.soap.search:
//            GoogleSearchDirectoryCategory, GoogleSearchResultElement

// flag ACC_SUPER is set
public class GoogleSearchResult
{
    // Constants:          163
    // Interfaces:         0
    // Fields:             11
    // Methods:            24
    // Class Attributes:   1


    private double tm;
    private String q;
    private String ct;
    private String tt;
    private GoogleSearchDirectoryCategory cats[];
    private int sn;
    private int en;
    private int m;
    private boolean fi;
    private boolean xt;
    private GoogleSearchResultElement rs[];

    // Decompiling method: setSearchTime  Signature: (D)V
    // Max stack: 3, #locals: 3, #params: 3
    // Code length: 6 bytes, Code offset: 2095
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name d Type D At 0 6 Range 0 5 Init 0
    // RetValue   3 added: Name <returnValue> Type V At 0 6 Range 0 5 Init 0 fixed
    public void setSearchTime(double d)
    {
        tm = d;
        return;
    }

    // Decompiling method: getSearchTime  Signature: ()D
    // Max stack: 2, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2143
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type D At 0 5 Range 0 4 Init 0 fixed
    public double getSearchTime()
    {
        return tm;
    }

    // Decompiling method: setSearchQuery  Signature: (Ljava/lang/String;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2186
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name s Type Ljava/lang/String; At 0 6 Range 0 5 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 6 Range 0 5 Init 0 fixed
    public void setSearchQuery(String s)
    {
        q = s;
        return;
    }

    // Decompiling method: getSearchQuery  Signature: ()Ljava/lang/String;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2234
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type Ljava/lang/String; At 0 5 Range 0 4 Init 0 fixed
    public String getSearchQuery()
    {
        return q;
    }

    // Decompiling method: setSearchComments  Signature: (Ljava/lang/String;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2277
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name s Type Ljava/lang/String; At 0 6 Range 0 5 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 6 Range 0 5 Init 0 fixed
    public void setSearchComments(String s)
    {
        ct = s;
        return;
    }

    // Decompiling method: getSearchComments  Signature: ()Ljava/lang/String;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2325
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type Ljava/lang/String; At 0 5 Range 0 4 Init 0 fixed
    public String getSearchComments()
    {
        return ct;
    }

    // Decompiling method: setSearchTips  Signature: (Ljava/lang/String;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2368
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name s Type Ljava/lang/String; At 0 6 Range 0 5 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 6 Range 0 5 Init 0 fixed
    public void setSearchTips(String s)
    {
        tt = s;
        return;
    }

    // Decompiling method: getSearchTips  Signature: ()Ljava/lang/String;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2416
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type Ljava/lang/String; At 0 5 Range 0 4 Init 0 fixed
    public String getSearchTips()
    {
        return tt;
    }

    // Decompiling method: setDirectoryCategories  Signature: ([Lcom/google/soap/search/GoogleSearchDirectoryCategory;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2459
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name agooglesearchdirectorycategory Type [Lcom/google/soap/search/GoogleSearchDirectoryCategory; At 0 6 Range 0 5 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 6 Range 0 5 Init 0 fixed
    public void setDirectoryCategories(GoogleSearchDirectoryCategory agooglesearchdirectorycategory[])
    {
        cats = agooglesearchdirectorycategory;
        return;
    }

    // Decompiling method: getDirectoryCategories  Signature: ()[Lcom/google/soap/search/GoogleSearchDirectoryCategory;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2507
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type [Lcom/google/soap/search/GoogleSearchDirectoryCategory; At 0 5 Range 0 4 Init 0 fixed
    public GoogleSearchDirectoryCategory[] getDirectoryCategories()
    {
        return cats;
    }

    // Decompiling method: setStartIndex  Signature: (I)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2550
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name i Type I At 0 6 Range 0 5 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 6 Range 0 5 Init 0 fixed
    public void setStartIndex(int i)
    {
        sn = i;
        return;
    }

    // Decompiling method: getStartIndex  Signature: ()I
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2598
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type I At 0 5 Range 0 4 Init 0 fixed
    public int getStartIndex()
    {
        return sn;
    }

    // Decompiling method: setEndIndex  Signature: (I)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2641
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name i Type I At 0 6 Range 0 5 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 6 Range 0 5 Init 0 fixed
    public void setEndIndex(int i)
    {
        en = i;
        return;
    }

    // Decompiling method: getEndIndex  Signature: ()I
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2689
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type I At 0 5 Range 0 4 Init 0 fixed
    public int getEndIndex()
    {
        return en;
    }

    // Decompiling method: setEstimatedTotalResultsCount  Signature: (I)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2732
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name i Type I At 0 6 Range 0 5 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 6 Range 0 5 Init 0 fixed
    public void setEstimatedTotalResultsCount(int i)
    {
        m = i;
        return;
    }

    // Decompiling method: getEstimatedTotalResultsCount  Signature: ()I
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2780
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type I At 0 5 Range 0 4 Init 0 fixed
    public int getEstimatedTotalResultsCount()
    {
        return m;
    }

    // Decompiling method: setDocumentFiltering  Signature: (Z)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2823
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name flag Type Z At 0 6 Range 0 5 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 6 Range 0 5 Init 0 fixed
    public void setDocumentFiltering(boolean flag)
    {
        fi = flag;
        return;
    }

    // Decompiling method: getDocumentFiltering  Signature: ()Z
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2871
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type Z At 0 5 Range 0 4 Init 0 fixed
    public boolean getDocumentFiltering()
    {
        return fi;
    }

    // Decompiling method: setEstimateIsExact  Signature: (Z)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2914
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name flag Type Z At 0 6 Range 0 5 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 6 Range 0 5 Init 0 fixed
    public void setEstimateIsExact(boolean flag)
    {
        xt = flag;
        return;
    }

    // Decompiling method: getEstimateIsExact  Signature: ()Z
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2962
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type Z At 0 5 Range 0 4 Init 0 fixed
    public boolean getEstimateIsExact()
    {
        return xt;
    }

    // Decompiling method: setResultElements  Signature: ([Lcom/google/soap/search/GoogleSearchResultElement;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 3005
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name agooglesearchresultelement Type [Lcom/google/soap/search/GoogleSearchResultElement; At 0 6 Range 0 5 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 6 Range 0 5 Init 0 fixed
    public void setResultElements(GoogleSearchResultElement agooglesearchresultelement[])
    {
        rs = agooglesearchresultelement;
        return;
    }

    // Decompiling method: getResultElements  Signature: ()[Lcom/google/soap/search/GoogleSearchResultElement;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 3053
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type [Lcom/google/soap/search/GoogleSearchResultElement; At 0 5 Range 0 4 Init 0 fixed
    public GoogleSearchResultElement[] getResultElements()
    {
        return rs;
    }

    // Decompiling method: toString  Signature: ()Ljava/lang/String;
    // Max stack: 4, #locals: 3, #params: 1
    // Code length: 448 bytes, Code offset: 3096
    // Line Number Table found: 38 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 448 Range 0 447 Init 0 fixed
    // RetValue   3 added: Name <returnValue> Type Ljava/lang/String; At 0 448 Range 0 447 Init 0 fixed
    // LocalVar   1 added: Name stringwriter Type Ljava/io/StringWriter; At 7 437 Range 7 443 Init 7
    // LocalVar   2 added: Name flag Type Z At 157 53 Range 157 209 Init 157
    // LocalVar   2 chged: Name i Oname flag Type I At 209 1 Range 157 209 Init 157
    // LocalVar   2 added: Name flag Type Z At 366 53 Range 366 418 Init 366
    // LocalVar   2 chged: Name j Oname flag Type I At 418 1 Range 366 418 Init 366
    public String toString()
    {
        StringWriter stringwriter = new StringWriter();
        stringwriter.write("{");
        stringwriter.write("\nTM = " + tm);
        stringwriter.write("\nQ  = \"" + q + "\"");
        stringwriter.write("\nCT = \"" + ct + "\"");
        stringwriter.write("\nTT = \"" + tt + "\"");
        stringwriter.write("\nCATs =");
        stringwriter.write("\n  {");
        if(cats.length == 0)
        {
            stringwriter.write("\n  <EMPTY>");
        }
        for(int i = 0; i < cats.length; i++)
        {
            stringwriter.write("\n  " + cats[i].toString());
            if(i < cats.length - 1)
            {
                stringwriter.write(",");
            }
        }

        stringwriter.write("\n  }");
        stringwriter.write("\nStart Index = " + sn);
        stringwriter.write("\nEnd   Index = " + en);
        stringwriter.write("\nEstimated Total Results Number = " + m);
        stringwriter.write("\nDocument Filtering = " + fi);
        stringwriter.write("\nEstimate Correct = " + xt);
        stringwriter.write("\nRs =");
        stringwriter.write("\n  {");
        if(rs.length == 0)
        {
            stringwriter.write("\n  <EMPTY>");
        }
        for(int j = 0; j < rs.length; j++)
        {
            stringwriter.write("\n  " + rs[j].toString());
            if(j < rs.length - 1)
            {
                stringwriter.write(",");
            }
        }

        stringwriter.write("\n  }");
        stringwriter.write("\n}");
        stringwriter.flush();
        return stringwriter.toString();
    }

    // Decompiling method: <init>  Signature: ()V
    // Max stack: 6, #locals: 1, #params: 1
    // Code length: 39 bytes, Code offset: 3730
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResult; At 0 39 Range 0 38 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type V At 0 39 Range 0 38 Init 0 fixed
    public GoogleSearchResult()
    {
        super();
        q = "";
        ct = "";
        tt = "";
        cats = new GoogleSearchDirectoryCategory[0];
        rs = new GoogleSearchResultElement[0];
        return;
    }
}
