Class GeocodeResponse.Result.AddressComponent
java.lang.Object
slash.navigation.googlemaps.geocode.GeocodeResponse.Result.AddressComponent
- Enclosing class:
GeocodeResponse.Result
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="long_name" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="short_name" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="type" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
</sequence>
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the longName property.Gets the value of the shortName property.getType()Gets the value of the type property.voidsetLongName(String value) Sets the value of the longName property.voidsetShortName(String value) Sets the value of the shortName property.
-
Field Details
-
longName
-
shortName
-
type
-
-
Constructor Details
-
AddressComponent
public AddressComponent()
-
-
Method Details
-
getLongName
Gets the value of the longName property.- Returns:
- possible object is
String
-
setLongName
Sets the value of the longName property.- Parameters:
value- allowed object isString
-
getShortName
Gets the value of the shortName property.- Returns:
- possible object is
String
-
setShortName
Sets the value of the shortName property.- Parameters:
value- allowed object isString
-
getType
Gets the value of the type property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the type property.For example, to add a new item, do as follows:
getType().add(newItem);Objects of the following type(s) are allowed in the list
String
-