net.opengis.ols.v_1_2
Class AddressType

java.lang.Object
  extended by net.opengis.ols.v_1_2.AbstractDataType
      extended by net.opengis.ols.v_1_2.AbstractLocationType
          extended by net.opengis.ols.v_1_2.AbstractAddressType
              extended by net.opengis.ols.v_1_2.AddressType
All Implemented Interfaces:
Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.MergeFrom, org.jvnet.jaxb2_commons.lang.ToString

public class AddressType
extends AbstractAddressType
implements Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.MergeFrom, org.jvnet.jaxb2_commons.lang.ToString

Defines an address

Java class for AddressType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="AddressType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractAddressType">
       <choice>
         <element name="freeFormAddress" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <sequence>
           <element ref="{http://www.opengis.net/xls}StreetAddress"/>
           <element ref="{http://www.opengis.net/xls}Place" maxOccurs="unbounded" minOccurs="0"/>
           <element ref="{http://www.opengis.net/xls}PostalCode" minOccurs="0"/>
         </sequence>
       </choice>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  String freeFormAddress
           
protected  List<NamedPlaceType> place
           
protected  String postalCode
           
protected  StreetAddressType streetAddress
           
 
Fields inherited from class net.opengis.ols.v_1_2.AbstractAddressType
addressee, countryCode, language
 
Constructor Summary
AddressType()
           
 
Method Summary
 StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
           
 StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
           
 Object clone()
           
 Object copyTo(Object target)
           
 Object copyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, Object target, org.jvnet.jaxb2_commons.lang.CopyStrategy strategy)
           
 Object createNewInstance()
           
 boolean equals(Object object)
           
 boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
           
 String getFreeFormAddress()
          Gets the value of the freeFormAddress property.
 List<NamedPlaceType> getPlace()
          Gets the value of the place property.
 String getPostalCode()
          Gets the value of the postalCode property.
 StreetAddressType getStreetAddress()
          Gets the value of the streetAddress property.
 int hashCode()
           
 int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
           
 boolean isSetFreeFormAddress()
           
 boolean isSetPlace()
           
 boolean isSetPostalCode()
           
 boolean isSetStreetAddress()
           
 void mergeFrom(org.jvnet.jaxb2_commons.locator.ObjectLocator leftLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator rightLocator, Object left, Object right, org.jvnet.jaxb2_commons.lang.MergeStrategy strategy)
           
 void mergeFrom(Object left, Object right)
           
 void setFreeFormAddress(String value)
          Sets the value of the freeFormAddress property.
 void setPlace(List<NamedPlaceType> value)
           
 void setPostalCode(String value)
          Sets the value of the postalCode property.
 void setStreetAddress(StreetAddressType value)
          Sets the value of the streetAddress property.
 String toString()
           
 void unsetPlace()
           
 AddressType withAddressee(String value)
           
 AddressType withCountryCode(String value)
           
 AddressType withFreeFormAddress(String value)
           
 AddressType withLanguage(String value)
           
 AddressType withPlace(Collection<NamedPlaceType> values)
           
 AddressType withPlace(List<NamedPlaceType> value)
           
 AddressType withPlace(NamedPlaceType... values)
           
 AddressType withPostalCode(String value)
           
 AddressType withStreetAddress(StreetAddressType value)
           
 
Methods inherited from class net.opengis.ols.v_1_2.AbstractAddressType
getAddressee, getCountryCode, getLanguage, isSetAddressee, isSetCountryCode, isSetLanguage, setAddressee, setCountryCode, setLanguage
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

freeFormAddress

protected String freeFormAddress

streetAddress

protected StreetAddressType streetAddress

place

protected List<NamedPlaceType> place

postalCode

protected String postalCode
Constructor Detail

AddressType

public AddressType()
Method Detail

getFreeFormAddress

public String getFreeFormAddress()
Gets the value of the freeFormAddress property.

Returns:
possible object is String

setFreeFormAddress

public void setFreeFormAddress(String value)
Sets the value of the freeFormAddress property.

Parameters:
value - allowed object is String

isSetFreeFormAddress

public boolean isSetFreeFormAddress()

getStreetAddress

public StreetAddressType getStreetAddress()
Gets the value of the streetAddress property.

Returns:
possible object is StreetAddressType

setStreetAddress

public void setStreetAddress(StreetAddressType value)
Sets the value of the streetAddress property.

Parameters:
value - allowed object is StreetAddressType

isSetStreetAddress

public boolean isSetStreetAddress()

getPlace

public List<NamedPlaceType> getPlace()
Gets the value of the place 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 place property.

For example, to add a new item, do as follows:

    getPlace().add(newItem);
 

Objects of the following type(s) are allowed in the list NamedPlaceType


isSetPlace

public boolean isSetPlace()

unsetPlace

public void unsetPlace()

getPostalCode

public String getPostalCode()
Gets the value of the postalCode property.

Returns:
possible object is String

setPostalCode

public void setPostalCode(String value)
Sets the value of the postalCode property.

Parameters:
value - allowed object is String

isSetPostalCode

public boolean isSetPostalCode()

toString

public String toString()
Overrides:
toString in class AbstractAddressType

append

public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            StringBuilder buffer,
                            org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
Specified by:
append in interface org.jvnet.jaxb2_commons.lang.ToString
Overrides:
append in class AbstractAddressType

appendFields

public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                  StringBuilder buffer,
                                  org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
Specified by:
appendFields in interface org.jvnet.jaxb2_commons.lang.ToString
Overrides:
appendFields in class AbstractAddressType

equals

public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                      org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                      Object object,
                      org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
Specified by:
equals in interface org.jvnet.jaxb2_commons.lang.Equals
Overrides:
equals in class AbstractAddressType

equals

public boolean equals(Object object)
Overrides:
equals in class AbstractAddressType

hashCode

public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                    org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
Specified by:
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode
Overrides:
hashCode in class AbstractAddressType

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractAddressType

clone

public Object clone()
Overrides:
clone in class AbstractAddressType

copyTo

public Object copyTo(Object target)
Specified by:
copyTo in interface org.jvnet.jaxb2_commons.lang.CopyTo
Overrides:
copyTo in class AbstractAddressType

copyTo

public Object copyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                     Object target,
                     org.jvnet.jaxb2_commons.lang.CopyStrategy strategy)
Specified by:
copyTo in interface org.jvnet.jaxb2_commons.lang.CopyTo
Overrides:
copyTo in class AbstractAddressType

createNewInstance

public Object createNewInstance()
Specified by:
createNewInstance in interface org.jvnet.jaxb2_commons.lang.CopyTo
Specified by:
createNewInstance in interface org.jvnet.jaxb2_commons.lang.MergeFrom
Overrides:
createNewInstance in class AbstractDataType

mergeFrom

public void mergeFrom(Object left,
                      Object right)
Specified by:
mergeFrom in interface org.jvnet.jaxb2_commons.lang.MergeFrom
Overrides:
mergeFrom in class AbstractAddressType

mergeFrom

public void mergeFrom(org.jvnet.jaxb2_commons.locator.ObjectLocator leftLocator,
                      org.jvnet.jaxb2_commons.locator.ObjectLocator rightLocator,
                      Object left,
                      Object right,
                      org.jvnet.jaxb2_commons.lang.MergeStrategy strategy)
Specified by:
mergeFrom in interface org.jvnet.jaxb2_commons.lang.MergeFrom
Overrides:
mergeFrom in class AbstractAddressType

setPlace

public void setPlace(List<NamedPlaceType> value)

withFreeFormAddress

public AddressType withFreeFormAddress(String value)

withStreetAddress

public AddressType withStreetAddress(StreetAddressType value)

withPlace

public AddressType withPlace(NamedPlaceType... values)

withPlace

public AddressType withPlace(Collection<NamedPlaceType> values)

withPostalCode

public AddressType withPostalCode(String value)

withPlace

public AddressType withPlace(List<NamedPlaceType> value)

withAddressee

public AddressType withAddressee(String value)
Overrides:
withAddressee in class AbstractAddressType

withCountryCode

public AddressType withCountryCode(String value)
Overrides:
withCountryCode in class AbstractAddressType

withLanguage

public AddressType withLanguage(String value)
Overrides:
withLanguage in class AbstractAddressType


Copyright © 2008-2015. All Rights Reserved.