001 package com.google.gwt.maps.client.services;
002
003 import com.google.gwt.core.client.JavaScriptObject;
004 import com.google.gwt.core.client.JsArrayString;
005
006 /**
007 * A single address component within a GeocoderResult. A full address may consist of multiple address components.
008 * <br><br>
009 * See <a href="https://developers.google.com/maps/documentation/javascript/reference#GeocoderAddressComponent">GeocoderAddressComponent API Doc</a>
010 */
011 public class GeocoderAddressComponent extends JavaScriptObject {
012
013 /**
014 * use newInstance();
015 */
016 protected GeocoderAddressComponent() {}
017
018 /**
019 * A single address component within a GeocoderResult. A full address may consist of multiple address components.
020 */
021 public static final GeocoderAddressComponent newInstace() {
022 return JavaScriptObject.createObject().cast();
023 }
024
025 /**
026 * The full text of the address component
027 * @param long_name
028 */
029 public final native void setLong_Name(String long_name) /*-{
030 this.long_name = long_name;
031 }-*/;
032
033 /**
034 * The full text of the address component
035 */
036 public final native String getLong_Name() /*-{
037 return this.long_name;
038 }-*/;
039
040 /**
041 * The abbreviated, short text of the given address component
042 * @param short_name
043 */
044 public final native void setShort_Name(String short_name) /*-{
045 this.short_name = short_name;
046 }-*/;
047
048 /**
049 * The abbreviated, short text of the given address component
050 */
051 public final native String getShort_Name() /*-{
052 return this.short_name;
053 }-*/;
054
055 /**
056 * An array of strings denoting the type of this address component
057 * @param types
058 */
059 public final native void setTypes(JsArrayString types) /*-{
060 this.types = types;
061 }-*/;
062
063 /**
064 * An array of strings denoting the type of this address component
065 */
066 public final native JsArrayString getTypes() /*-{
067 return this.types;
068 }-*/;
069
070 }