com.mizar.addressing.usaddress
Class KeyinParser

java.lang.Object
  extended by com.mizar.addressing.usaddress.AbstractAddressQuery
      extended by com.mizar.addressing.usaddress.KeyinParser

public class KeyinParser
extends AbstractAddressQuery

A class designed to parse recipient-search keyins. The idea is that if a recipient supplies '215 East Albert Street', the parser will determine that it is an address, but won't parse the address


Nested Class Summary
static class KeyinParser.ParseType
           
 
Field Summary
 
Fields inherited from class com.mizar.addressing.usaddress.AbstractAddressQuery
address, arl, COUNTY, countyName, filterClause, keyword, KEYWORD, NONE, PLACE, placeName, relativeLocationFacet, relativeLocationId, relativeLocationType, siteId, sql, state, STATE, streetId, streetName, TOWN, townName, UNDEFINED, zip, ZIP
 
Constructor Summary
KeyinParser()
           
 
Method Summary
 java.lang.String appendSpatialFilter(java.lang.String alias, java.lang.StringBuffer query)
           
 java.lang.String getID()
           
 java.lang.String getOwnerName()
           
 java.lang.String getStreetName()
          Return a Human readible version of street name
 java.lang.String getStreetSearch()
          Gets the search string used to do DB queries
 KeyinParser.ParseType parseKeyin(java.lang.String keyin)
           
 boolean tryToSetCountyId(java.lang.String countyId)
           
 boolean tryToSetPlaceId(java.lang.String placeId)
           
 boolean tryToSetTownId(java.lang.String townId)
           
 
Methods inherited from class com.mizar.addressing.usaddress.AbstractAddressQuery
clear, getAddress, getAddressStreet, getAnyInteractClause, getArl, getCompletedFilterClause, getCountyId, getCountyName, getFilterClause, getKeyword, getNearestNeighborsClause, getPlaceId, getPlaceName, getRelativeLocationFacet, getRelativeLocationId, getRelativeLocationType, getRelativeLocationTypes, getSiteId, getSql, getState, getStreetId, getStreetsFromIntersection, getTownId, getTownName, getWithinDistanceClause, getZip, inferKeyword, interpretKeyin, looksLikeCounty, looksLikeId, looksLikeIntersection, looksLikeKeyword, looksLikeNothing, looksLikePlace, looksLikeSiteId, looksLikeState, looksLikeStreet, looksLikeStreetId, looksLikeZip, main, setAddress, setCountyId, setCountyName, setFilterClause, setPlaceId, setPlaceName, setRelativeLocationId, setRelativeLocationType, setSiteId, setSql, setState, setStreetId, setStreetName, setTownId, setTownName, setUSAddress, setZip, tryToSetTown, validateAddress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyinParser

public KeyinParser()
Method Detail

tryToSetTownId

public boolean tryToSetTownId(java.lang.String townId)
Specified by:
tryToSetTownId in class AbstractAddressQuery

tryToSetPlaceId

public boolean tryToSetPlaceId(java.lang.String placeId)
Specified by:
tryToSetPlaceId in class AbstractAddressQuery

tryToSetCountyId

public boolean tryToSetCountyId(java.lang.String countyId)
Specified by:
tryToSetCountyId in class AbstractAddressQuery

appendSpatialFilter

public java.lang.String appendSpatialFilter(java.lang.String alias,
                                            java.lang.StringBuffer query)
Specified by:
appendSpatialFilter in class AbstractAddressQuery

getID

public java.lang.String getID()

getOwnerName

public java.lang.String getOwnerName()

parseKeyin

public KeyinParser.ParseType parseKeyin(java.lang.String keyin)

getStreetName

public java.lang.String getStreetName()
Return a Human readible version of street name

Overrides:
getStreetName in class AbstractAddressQuery
Returns:

getStreetSearch

public java.lang.String getStreetSearch()
Gets the search string used to do DB queries

Returns: