Package org.cyclos.model.users.addresses
Class AddressDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityDTO
-
- org.cyclos.model.users.addresses.AddressDTO
-
- All Implemented Interfaces:
Serializable,IEntity,IAddress
- Direct Known Subclasses:
GeoLocatedAddressDTO,OrderAddressDTO
public abstract class AddressDTO extends EntityDTO implements IAddress
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<String,AddressDTO>ADDRESS_LINE_1static BasicProperty<String,AddressDTO>ADDRESS_LINE_2static BasicProperty<String,AddressDTO>BUILDING_NUMBERstatic BasicProperty<String,AddressDTO>CITYstatic StringCLASS_NAMEstatic BasicProperty<String,AddressDTO>COMPLEMENTstatic BasicProperty<String,AddressDTO>COUNTRYstatic BasicProperty<String,AddressDTO>NEIGHBORHOODstatic BasicProperty<String,AddressDTO>PO_BOXstatic BasicProperty<String,AddressDTO>REGIONstatic BasicProperty<String,AddressDTO>STREETstatic BasicProperty<String,AddressDTO>ZIP-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description AddressDTO()AddressDTO(Long id)AddressDTO(Property<T,? super AddressDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Property<?,?>>doGetProperties()StringgetAddressLine1()StringgetAddressLine2()StringgetBuildingNumber()StringgetCity()StringgetComplement()StringgetCountry()StringgetNeighborhood()StringgetPoBox()StringgetRegion()StringgetStreet()StringgetZip()voidsetAddressLine1(String addressLine1)voidsetAddressLine2(String addressLine2)voidsetBuildingNumber(String buildingNumber)voidsetCity(String city)voidsetComplement(String complement)voidsetCountry(String country)voidsetNeighborhood(String neighborhood)voidsetPoBox(String poBox)voidsetRegion(String region)voidsetStreet(String street)voidsetZip(String zip)StringtoString()-
Methods inherited from class org.cyclos.model.EntityDTO
getVersion, isPersistent, isTransient, setVersion
-
Methods inherited from class org.cyclos.model.EntityModel
equals, getId, hashCode, setId
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, className, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId, values
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
ADDRESS_LINE_1
public static final BasicProperty<String,AddressDTO> ADDRESS_LINE_1
-
ADDRESS_LINE_2
public static final BasicProperty<String,AddressDTO> ADDRESS_LINE_2
-
BUILDING_NUMBER
public static final BasicProperty<String,AddressDTO> BUILDING_NUMBER
-
CITY
public static final BasicProperty<String,AddressDTO> CITY
-
COMPLEMENT
public static final BasicProperty<String,AddressDTO> COMPLEMENT
-
COUNTRY
public static final BasicProperty<String,AddressDTO> COUNTRY
-
NEIGHBORHOOD
public static final BasicProperty<String,AddressDTO> NEIGHBORHOOD
-
PO_BOX
public static final BasicProperty<String,AddressDTO> PO_BOX
-
REGION
public static final BasicProperty<String,AddressDTO> REGION
-
STREET
public static final BasicProperty<String,AddressDTO> STREET
-
ZIP
public static final BasicProperty<String,AddressDTO> ZIP
-
-
Constructor Detail
-
AddressDTO
public AddressDTO()
-
AddressDTO
public AddressDTO(Long id)
-
AddressDTO
public AddressDTO(Property<T,? super AddressDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classEntityDTO
-
getAddressLine1
public String getAddressLine1()
- Specified by:
getAddressLine1in interfaceIAddress
-
setAddressLine1
public void setAddressLine1(String addressLine1)
- Specified by:
setAddressLine1in interfaceIAddress
-
getAddressLine2
public String getAddressLine2()
- Specified by:
getAddressLine2in interfaceIAddress
-
setAddressLine2
public void setAddressLine2(String addressLine2)
- Specified by:
setAddressLine2in interfaceIAddress
-
getBuildingNumber
public String getBuildingNumber()
- Specified by:
getBuildingNumberin interfaceIAddress
-
setBuildingNumber
public void setBuildingNumber(String buildingNumber)
- Specified by:
setBuildingNumberin interfaceIAddress
-
getComplement
public String getComplement()
- Specified by:
getComplementin interfaceIAddress
-
setComplement
public void setComplement(String complement)
- Specified by:
setComplementin interfaceIAddress
-
getCountry
public String getCountry()
- Specified by:
getCountryin interfaceIAddress
-
setCountry
public void setCountry(String country)
- Specified by:
setCountryin interfaceIAddress
-
getNeighborhood
public String getNeighborhood()
- Specified by:
getNeighborhoodin interfaceIAddress
-
setNeighborhood
public void setNeighborhood(String neighborhood)
- Specified by:
setNeighborhoodin interfaceIAddress
-
toString
public String toString()
- Overrides:
toStringin classEntityModel
-
-