Class GeocodeResponse.Result.AddressComponent

java.lang.Object
slash.navigation.googlemaps.geocode.GeocodeResponse.Result.AddressComponent
Enclosing class:
GeocodeResponse.Result

public static class GeocodeResponse.Result.AddressComponent extends Object

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 Details

    • longName

      protected String longName
    • shortName

      protected String shortName
    • type

      protected List<String> type
  • Constructor Details

    • AddressComponent

      public AddressComponent()
  • Method Details

    • getLongName

      public String getLongName()
      Gets the value of the longName property.
      Returns:
      possible object is String
    • setLongName

      public void setLongName(String value)
      Sets the value of the longName property.
      Parameters:
      value - allowed object is String
    • getShortName

      public String getShortName()
      Gets the value of the shortName property.
      Returns:
      possible object is String
    • setShortName

      public void setShortName(String value)
      Sets the value of the shortName property.
      Parameters:
      value - allowed object is String
    • getType

      public List<String> 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 set method 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