|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.catalog.lucene.Locator
public class Locator
Locator.
Nested Class Summary | |
---|---|
static class |
Locator.Candidate
Candidate. |
static class |
Locator.ScoreComparator
Score comparator. |
Field Summary | |
---|---|
protected String |
url
geolocator service URL |
Constructor Summary | |
---|---|
protected |
Locator()
Creates instance of the locator. |
Method Summary | |
---|---|
Locator.Candidate[] |
find(String text)
Finds candidates. |
protected Locator.Candidate[] |
find(String address,
String city,
String state,
String zip)
Finds all candidates for the address. |
Locator.Candidate |
findBestCandidate(Locator.Candidate[] candidates)
Finds best candidate from the array of candidates. |
Locator.Candidate |
findBestCandidate(Locator.Candidate[] candidates,
Comparator<Locator.Candidate> comparator)
Finds best candidate from the array of candidates. |
protected String |
makeQueryUrl(String address,
String city,
String state,
String zip)
Makes query URL. |
static Locator |
newInstance()
Creates new instance of the locator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String url
Constructor Detail |
---|
protected Locator()
Method Detail |
---|
public static Locator newInstance()
IllegalArgumentException
- if "lucene.locatorClass" parameter is invalidpublic Locator.Candidate[] find(String text) throws IOException, ParseException
text
- address text
IOException
- if accessing geolocator service fails
ParseException
- if parsing address text failspublic Locator.Candidate findBestCandidate(Locator.Candidate[] candidates)
Locator.ScoreComparator
.
candidates
- array of candidates
null
if no candidates can be foundpublic Locator.Candidate findBestCandidate(Locator.Candidate[] candidates, Comparator<Locator.Candidate> comparator)
candidates
- array of candidatescomparator
- comparator
null
if no candidates can be foundprotected Locator.Candidate[] find(String address, String city, String state, String zip) throws IOException
address
- addresscity
- citystate
- statezip
- zip
IOException
- if accessing geolocator service failsprotected String makeQueryUrl(String address, String city, String state, String zip)
address
- addresscity
- citystate
- statezip
- zip
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |