org.rometools.feed.module.opensearch.entity
Class OSQuery

java.lang.Object
  extended by org.rometools.feed.module.opensearch.entity.OSQuery
All Implemented Interfaces:
Serializable, Cloneable

public class OSQuery
extends Object
implements Cloneable, Serializable

Author:
Michael W. Nassif (enrouteinc@gmail.com) Class representation of the Query object (Response portion so far)
See Also:
Serialized Form

Constructor Summary
OSQuery()
          Default constructor.
 
Method Summary
 Object clone()
          Creates a deep 'bean' clone of the object.
 boolean equals(Object other)
          Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
 String getOsd()
           
 String getRole()
           
 String getSearchTerms()
           
 int getStartPage()
           
 String getTitle()
           
 int getTotalResults()
           
 int hashCode()
          Returns a hashcode value for the object.
 void setOsd(String osd)
          Typically represents a url link to the os description file
 void setRole(String role)
           
 void setSearchTerms(String searchTerms)
           
 void setStartPage(int startPage)
           
 void setTitle(String title)
           
 void setTotalResults(int totalResults)
           
 String toString()
          Returns the String representation for the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSQuery

public OSQuery()
Default constructor. All properties are set to null.

Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Creates a deep 'bean' clone of the object.

Overrides:
clone in class Object
Returns:
a clone of the object.
Throws:
CloneNotSupportedException - thrown if an element of the object cannot be cloned.

equals

public boolean equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

Overrides:
equals in class Object
Parameters:
other - he reference object with which to compare.
Returns:
true if 'this' object is equal to the 'other' object.

hashCode

public int hashCode()
Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

Overrides:
hashCode in class Object
Returns:
the hashcode of the bean object.

toString

public String toString()
Returns the String representation for the object.

Overrides:
toString in class Object
Returns:
String representation for the object.

getOsd

public String getOsd()
Returns:
Returns the osd.

setOsd

public void setOsd(String osd)
Typically represents a url link to the os description file

Parameters:
osd - The osd to set.

getRole

public String getRole()
Returns:
Returns the role.

setRole

public void setRole(String role)
Parameters:
role - The role to set.

getSearchTerms

public String getSearchTerms()
Returns:
Returns the searchTerms.

setSearchTerms

public void setSearchTerms(String searchTerms)
Parameters:
searchTerms - The searchTerms to set.

getStartPage

public int getStartPage()
Returns:
Returns the startPage.

setStartPage

public void setStartPage(int startPage)
Parameters:
startPage - The startPage to set.

getTitle

public String getTitle()
Returns:
Returns the title.

setTitle

public void setTitle(String title)
Parameters:
title - The title to set.

getTotalResults

public int getTotalResults()
Returns:
Returns the totalResults.

setTotalResults

public void setTotalResults(int totalResults)
Parameters:
totalResults - The totalResults to set.


Copyright © 2013 ROME Project. All Rights Reserved.