Package org.gedcomx.agent
Class Address
- java.lang.Object
-
- org.gedcomx.common.ExtensibleData
-
- org.gedcomx.agent.Address
-
- All Implemented Interfaces:
HasTransientProperties,SupportsExtensionElements
public class Address extends ExtensibleData
An address.- Author:
- Ryan Heaton
-
-
Field Summary
-
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties
-
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Addresscity(String city)Build up this address with a city.Addresscountry(String country)Build up this address with a country.AddressextensionElement(Object element)StringgetCity()The city.StringgetCountry()The country.StringgetPostalCode()The postal code.StringgetStateOrProvince()The state or province.StringgetStreet()The street.StringgetStreet2()Additional street information.StringgetStreet3()Additional street information.StringgetStreet4()Additional street information.StringgetStreet5()Additional street information.StringgetStreet6()Additional street information.StringgetValue()The value of the property, if it can be expressed as a string.Addressid(String id)Build up this object with an id.AddresspostalCode(String postalCode)Build up this address with a postalcode.voidsetCity(String city)The city.voidsetCountry(String country)The country.voidsetPostalCode(String postalCode)The postal code.voidsetStateOrProvince(String stateOrProvince)The state or province.voidsetStreet(String street)The street.voidsetStreet2(String street2)Additional street information.voidsetStreet3(String street3)Additional street information.voidsetStreet4(String street4)Additional street information.voidsetStreet5(String street5)Additional street information.voidsetStreet6(String street6)Additional street information.voidsetValue(String value)The value of the property, if it can be expressed as a string.AddressstateOrProvince(String stateOrProvince)Build up this address with a state or province.Addressstreet(String street)Build up this address with a street.Addressstreet2(String street2)Build up this address with a street2.Addressstreet3(String street3)Build up this address with a street3.Addressstreet4(String street4)Build up this address with a street4.Addressstreet5(String street5)Build up this address with a street5.Addressstreet6(String street6)Build up this address with a street6.Addressvalue(String value)Build up this address with a value.-
Methods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString
-
-
-
-
Method Detail
-
id
public Address id(String id)
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
public Address extensionElement(Object element)
- Overrides:
extensionElementin classExtensibleData
-
getCity
public String getCity()
The city.- Returns:
- The city.
-
setCity
public void setCity(String city)
The city.- Parameters:
city- The city.
-
city
public Address city(String city)
Build up this address with a city.- Parameters:
city- The city.- Returns:
- this.
-
getCountry
public String getCountry()
The country.- Returns:
- The country.
-
country
public Address country(String country)
Build up this address with a country.- Parameters:
country- The country.- Returns:
- this.
-
setCountry
public void setCountry(String country)
The country.- Parameters:
country- The country.
-
getPostalCode
public String getPostalCode()
The postal code.- Returns:
- The postal code.
-
setPostalCode
public void setPostalCode(String postalCode)
The postal code.- Parameters:
postalCode- The postal code.
-
postalCode
public Address postalCode(String postalCode)
Build up this address with a postalcode.- Parameters:
postalCode- The postalcode.- Returns:
- this.
-
getStateOrProvince
public String getStateOrProvince()
The state or province.- Returns:
- The state or province.
-
setStateOrProvince
public void setStateOrProvince(String stateOrProvince)
The state or province.- Parameters:
stateOrProvince- The state or province.
-
stateOrProvince
public Address stateOrProvince(String stateOrProvince)
Build up this address with a state or province.- Parameters:
stateOrProvince- The state or province.- Returns:
- this.
-
getStreet
public String getStreet()
The street.- Returns:
- The street.
-
setStreet
public void setStreet(String street)
The street.- Parameters:
street- The street.
-
street
public Address street(String street)
Build up this address with a street.- Parameters:
street- The street.- Returns:
- this.
-
getStreet2
public String getStreet2()
Additional street information.- Returns:
- Additional street information.
-
setStreet2
public void setStreet2(String street2)
Additional street information.- Parameters:
street2- Additional street information.
-
street2
public Address street2(String street2)
Build up this address with a street2.- Parameters:
street2- The street2.- Returns:
- this.
-
getStreet3
public String getStreet3()
Additional street information.- Returns:
- Additional street information.
-
setStreet3
public void setStreet3(String street3)
Additional street information.- Parameters:
street3- Additional street information.
-
street3
public Address street3(String street3)
Build up this address with a street3.- Parameters:
street3- The street3.- Returns:
- this.
-
getStreet4
public String getStreet4()
Additional street information.- Returns:
- Additional street information.
-
setStreet4
public void setStreet4(String street4)
Additional street information.- Parameters:
street4- Additional street information.
-
street4
public Address street4(String street4)
Build up this address with a street4.- Parameters:
street4- The street4.- Returns:
- this.
-
getStreet5
public String getStreet5()
Additional street information.- Returns:
- Additional street information.
-
setStreet5
public void setStreet5(String street5)
Additional street information.- Parameters:
street5- Additional street information.
-
street5
public Address street5(String street5)
Build up this address with a street5.- Parameters:
street5- The street5.- Returns:
- this.
-
getStreet6
public String getStreet6()
Additional street information.- Returns:
- Additional street information.
-
setStreet6
public void setStreet6(String street6)
Additional street information.- Parameters:
street6- Additional street information.
-
street6
public Address street6(String street6)
Build up this address with a street6.- Parameters:
street6- The street6.- Returns:
- this.
-
getValue
public String getValue()
The value of the property, if it can be expressed as a string.- Returns:
- The value of the property.
-
setValue
public void setValue(String value)
The value of the property, if it can be expressed as a string.- Parameters:
value- The value of the property.
-
-