// 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:   GoogleSearchResultElement.java
// Class Version:      45.3

package com.google.soap.search;

import java.io.StringWriter;

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

// flag ACC_SUPER is set
public class GoogleSearchResultElement
{
    // Constants:          124
    // Interfaces:         0
    // Fields:             10
    // Methods:            20
    // Class Attributes:   1


    private String u;
    private String t;
    private int rk;
    private String s;
    private GoogleSearchDirectoryCategory cat;
    private String dt;
    private String ds;
    private String sz;
    private boolean rt;
    private String hn;

    // Decompiling method: setURL  Signature: (Ljava/lang/String;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 1560
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name s1 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 setURL(String s1)
    {
        u = s1;
        return;
    }

    // Decompiling method: getURL  Signature: ()Ljava/lang/String;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 1608
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; 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 getURL()
    {
        return u;
    }

    // Decompiling method: setTitle  Signature: (Ljava/lang/String;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 1651
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name s1 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 setTitle(String s1)
    {
        t = s1;
        return;
    }

    // Decompiling method: getTitle  Signature: ()Ljava/lang/String;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 1699
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; 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 getTitle()
    {
        return t;
    }

    // Decompiling method: setSnippet  Signature: (Ljava/lang/String;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 1742
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name s1 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 setSnippet(String s1)
    {
        s = s1;
        return;
    }

    // Decompiling method: getSnippet  Signature: ()Ljava/lang/String;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 1790
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; 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 getSnippet()
    {
        return s;
    }

    // Decompiling method: setDirectoryCategory  Signature: (Lcom/google/soap/search/GoogleSearchDirectoryCategory;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 1833
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name googlesearchdirectorycategory 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 setDirectoryCategory(GoogleSearchDirectoryCategory googlesearchdirectorycategory)
    {
        cat = googlesearchdirectorycategory;
        return;
    }

    // Decompiling method: getDirectoryCategory  Signature: ()Lcom/google/soap/search/GoogleSearchDirectoryCategory;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 1881
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; 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 getDirectoryCategory()
    {
        return cat;
    }

    // Decompiling method: setDirectoryTitle  Signature: (Ljava/lang/String;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 1924
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name s1 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 setDirectoryTitle(String s1)
    {
        dt = s1;
        return;
    }

    // Decompiling method: getDirectoryTitle  Signature: ()Ljava/lang/String;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 1972
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; 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 getDirectoryTitle()
    {
        return dt;
    }

    // Decompiling method: setSummary  Signature: (Ljava/lang/String;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2015
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name s1 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 setSummary(String s1)
    {
        ds = s1;
        return;
    }

    // Decompiling method: getSummary  Signature: ()Ljava/lang/String;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2063
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; 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 getSummary()
    {
        return ds;
    }

    // Decompiling method: setCachedSize  Signature: (Ljava/lang/String;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2106
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name s1 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 setCachedSize(String s1)
    {
        sz = s1;
        return;
    }

    // Decompiling method: getCachedSize  Signature: ()Ljava/lang/String;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2154
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; 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 getCachedSize()
    {
        return sz;
    }

    // Decompiling method: setRelatedInformationPresent  Signature: (Z)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2197
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; 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 setRelatedInformationPresent(boolean flag)
    {
        rt = flag;
        return;
    }

    // Decompiling method: getRelatedInformationPresent  Signature: ()Z
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2245
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; 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 getRelatedInformationPresent()
    {
        return rt;
    }

    // Decompiling method: setHostName  Signature: (Ljava/lang/String;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 6 bytes, Code offset: 2288
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; At 0 6 Range 0 5 Init 0 fixed
    // Parameter  1 added: Name s1 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 setHostName(String s1)
    {
        hn = s1;
        return;
    }

    // Decompiling method: getHostName  Signature: ()Ljava/lang/String;
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 2336
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; 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 getHostName()
    {
        return hn;
    }

    // Decompiling method: toString  Signature: ()Ljava/lang/String;
    // Max stack: 4, #locals: 2, #params: 1
    // Code length: 295 bytes, Code offset: 2379
    // Line Number Table found: 14 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; At 0 295 Range 0 294 Init 0 fixed
    // RetValue   2 added: Name <returnValue> Type Ljava/lang/String; At 0 295 Range 0 294 Init 0 fixed
    // LocalVar   1 added: Name stringwriter Type Ljava/io/StringWriter; At 7 284 Range 7 290 Init 7
    public String toString()
    {
        StringWriter stringwriter = new StringWriter();
        stringwriter.write("\n  [");
        stringwriter.write("\n  URL  = \"" + u + "\"");
        stringwriter.write("\n  Title = \"" + t + "\"");
        stringwriter.write("\n  Snippet = \"" + s + "\"");
        stringwriter.write("\n  Directory Category = " + cat.toString());
        stringwriter.write("\n  Directory Title = \"" + dt + "\"");
        stringwriter.write("\n  Summary = \"" + ds + "\"");
        stringwriter.write("\n  Cached Size = \"" + sz + "\"");
        stringwriter.write("\n  Related information present = " + rt);
        stringwriter.write("\n  Host Name = \"" + hn + "\"");
        stringwriter.write("\n  ]");
        stringwriter.flush();
        return stringwriter.toString();
    }

    // Decompiling method: <init>  Signature: ()V
    // Max stack: 9, #locals: 1, #params: 1
    // Code length: 58 bytes, Code offset: 2764
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Lcom/google/soap/search/GoogleSearchResultElement; At 0 58 Range 0 57 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type V At 0 58 Range 0 57 Init 0 fixed
    public GoogleSearchResultElement()
    {
        super();
        u = "";
        t = "";
        s = "";
        cat = new GoogleSearchDirectoryCategory();
        dt = "";
        ds = "";
        sz = "";
        hn = "";
        return;
    }
}
