mls.domain
Class MlsBusinessObject

java.lang.Object
  |
  +--mls.common.XmlObject
        |
        +--mls.common.TranslatingXmlObject
              |
              +--mls.domain.MlsBusinessObject

public class MlsBusinessObject
extends TranslatingXmlObject

A business object that wrappers access to the multiple listing service database. Currently, this runs in test mode, using a 'pseudo-database' retrieved from an XML file.


Fields inherited from class mls.common.TranslatingXmlObject
EMPTY, NULL_BOOLEAN, NULL_BYTE, NULL_CHAR, NULL_DOUBLE, NULL_FLOAT, NULL_INTEGER, NULL_LONG, NULL_SHORT, NULL_STRING
 
Fields inherited from class mls.common.XmlObject
INDENT
 
Constructor Summary
MlsBusinessObject()
           
 
Method Summary
static Results doQuery(Query query)
          Process the specified query, returning a results object Currently, this retrieves results from an XML file as opposed to a database.
private static Results filterResults(Results results, Query query)
          Filter a results set based on the specified query
 
Methods inherited from class mls.common.TranslatingXmlObject
addCloseTag, addOpenTag, addString, addString, build, buildArrayPrimitive, buildEnum, buildPrimitive, classNameToXmlTag, extract, extractArrayPrimitive, extractEnum, extractPrimitive, initDoc, isPrimitive, object2Xml, xml2Object
 
Methods inherited from class mls.common.XmlObject
dump, dumpElement, getChildren, getChildren, getElement, getElement, getElement, getElementText, getParser, indent, narrow, nElements, parse, parseString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

MlsBusinessObject

public MlsBusinessObject()
Method Detail

doQuery

public static Results doQuery(Query query)
Process the specified query, returning a results object Currently, this retrieves results from an XML file as opposed to a database.
Parameters:
query - an MLS query object
Returns:
a Results object derived from the test file or null if an error occurs

filterResults

private static Results filterResults(Results results,
                                     Query query)
Filter a results set based on the specified query
Parameters:
results - an MLS property results set
query - an MLS query object
Returns:
a Results object filtered on price and other query criteria