|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ahmadsoft.postal.USPostalCodeService.MatchOptions
public static class USPostalCodeService.MatchOptions
Specifies options for performing an advanced match operation.
Constructor Summary | |
---|---|
USPostalCodeService.MatchOptions(boolean ignoreCapitalization,
boolean ignorePunctuation,
boolean ignoreWhitespace,
int maxMatchLevel)
Creates a new match option. |
Method Summary | |
---|---|
int |
getMaxMatchLevel()
Returns the maximum match level for a match operation. |
boolean |
isIgnoreCapitalization()
Returns true is capitalization should be ignored when computing
the distance between two names, and false otherwise. |
boolean |
isIgnorePunctuation()
Returns true if punctuation should be ignored when computing the
distance between two names, and false otherwise. |
boolean |
isIgnoreWhitespace()
Returns true if whitespace should be ignored when computing the
distance between two names, and false otherwise . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public USPostalCodeService.MatchOptions(boolean ignoreCapitalization, boolean ignorePunctuation, boolean ignoreWhitespace, int maxMatchLevel)
ignoreCapitalization
- ignorePunctuation
- ignoreWhitespace
- maxMatchLevel
- Method Detail |
---|
public boolean isIgnoreCapitalization()
true
is capitalization should be ignored when computing
the distance between two names, and false
otherwise. For example,
if the value were true, then the distace between Dallas and dallas would be
zero, but if the value were false, then the distace would be one.
true
is capitalization should be ignored when computing
the distance between two names, and false
otherwise.public boolean isIgnorePunctuation()
true
if punctuation should be ignored when computing the
distance between two names, and false
otherwise. The
punctuation characters are defined as follows:
`~!@#$%^&*()_-+=[{]}\|;:'",<.>/?
true
if punctuation should be ignored when
computing the distance between two names, and false
otherwise.public boolean isIgnoreWhitespace()
true
if whitespace should be ignored when computing the
distance between two names, and false otherwise
. If, for
example, the value were true, then the match distance between
LOSANGELES and LOS ANGELES would be one, and if the value were false,
the distance would be zero.
true
if whitespace should be ignored when computing the
distance between two names, and false otherwise
.public int getMaxMatchLevel()
CITY_ACTUAL
< CITY_ACCEPTABLE
<
CITY_UNACCEPTABLE
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |