mls.domain
Class Query

java.lang.Object
  |
  +--mls.domain.Query

public class Query
extends java.lang.Object

MLS query structure


Field Summary
 int maxPrice
           
 int minPrice
          Minimum and maximum price for desired property
 java.lang.String style
          Property style
 java.lang.String type
          Property type
 
Constructor Summary
Query()
          Default constructor
 
Method Summary
 boolean isValid()
          Returns true if this query structure has been correctly initialized.
 void setMaxPrice(java.lang.String max)
          Set the maximum price from a string.
 void setMinPrice(java.lang.String min)
          Set the minimum price from a string.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

minPrice

public int minPrice
Minimum and maximum price for desired property

maxPrice

public int maxPrice

type

public java.lang.String type
Property type

style

public java.lang.String style
Property style
Constructor Detail

Query

public Query()
Default constructor
Method Detail

setMinPrice

public void setMinPrice(java.lang.String min)
Set the minimum price from a string. Sets this to 0 if an exception occurs parsing the string.
Parameters:
min - a string containing a minimum price

setMaxPrice

public void setMaxPrice(java.lang.String max)
Set the maximum price from a string. Sets this to 'no price limit' if an exception occurs parsing the string.
Parameters:
min - a string containing a minimum price

isValid

public boolean isValid()
Returns true if this query structure has been correctly initialized.