public class CandidateRange extends Object implements GeoSerialize, Serializable
Constructor and Description |
---|
CandidateRange() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
convertToMap()
Convert this object to a "map of maps" where each map is Map<String, Object>
|
Set<String> |
getCustomFieldKeys()
If the range has custom key-value pairs, returns the keys hat may be used to retrieve values
|
protected String |
getCustomFieldValue(AdditionalFieldKeys key) |
String |
getCustomFieldValue(String key)
Return an individual custom field value
|
Map<String,String> |
getCustomValues()
Returns a map of custom values.
|
String |
getFormattedAddress()
This returns the street and location information, correctly formatted for the country the
candidate is coming from.
|
String |
getHighHouse()
This method gets the String of the highest house number on the range
|
String |
getIdentifier()
Returns an identifier for this candidate.
|
String |
getLowHouse()
This method gets the String of the lowest house number on the range
|
OddEvenIndicator |
getOddEvenIndicator()
Returns information on the house numbers on this range
|
String |
getPlaceName()
Returns the place name associated with this range, if any
|
StreetSideIndicator |
getStreetSide()
Returns which side of the street this range is on
|
List<CandidateRangeUnit> |
getUnits()
Returns a list containing any unit information associated with this range, if units were
requested and they exist on the range
|
void |
setFormattedAddress(String formattedAddress) |
void |
setHighHouse(String num) |
void |
setIdentifier(String identifier) |
void |
setLowHouse(String num) |
void |
setOddEvenIndicator(OddEvenIndicator oddEvenIndicator) |
void |
setPlaceName(String name) |
void |
setSide(StreetSideIndicator side) |
void |
setUnits(List<CandidateRangeUnit> units) |
String |
toString() |
public String getPlaceName()
public void setPlaceName(String name)
public String getLowHouse()
public void setLowHouse(String num)
public String getHighHouse()
public void setHighHouse(String num)
public List<CandidateRangeUnit> getUnits()
public void setUnits(List<CandidateRangeUnit> units)
public Map<String,String> getCustomValues()
public OddEvenIndicator getOddEvenIndicator()
public void setOddEvenIndicator(OddEvenIndicator oddEvenIndicator)
public StreetSideIndicator getStreetSide()
public Set<String> getCustomFieldKeys()
public String getCustomFieldValue(String key)
key
- key of the custom fieldprotected String getCustomFieldValue(AdditionalFieldKeys key)
public String getFormattedAddress()
public void setFormattedAddress(String formattedAddress)
public String getIdentifier()
public void setIdentifier(String identifier)
public void setSide(StreetSideIndicator side)
public Map<String,Object> convertToMap()
convertToMap
in interface GeoSerialize
Copyright © 2024. All rights reserved.