Package org.cyclos.model.users.addresses
Class GeoLocatedAddressDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityDTO
-
- org.cyclos.model.users.addresses.AddressDTO
-
- org.cyclos.model.users.addresses.GeoLocatedAddressDTO
-
- All Implemented Interfaces:
Serializable,IEntity,INamedEntity,IAddress
- Direct Known Subclasses:
AdAddressDTO,UserAddressDTO
public class GeoLocatedAddressDTO extends AddressDTO implements INamedEntity
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_NAMEstatic BasicProperty<Boolean,GeoLocatedAddressDTO>LOCATEDstatic BasicProperty<LatLongDTO,GeoLocatedAddressDTO>LOCATIONstatic BasicProperty<String,GeoLocatedAddressDTO>NAME-
Fields inherited from class org.cyclos.model.users.addresses.AddressDTO
ADDRESS_LINE_1, ADDRESS_LINE_2, BUILDING_NUMBER, CITY, COMPLEMENT, COUNTRY, NEIGHBORHOOD, PO_BOX, REGION, STREET, ZIP
-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description GeoLocatedAddressDTO()GeoLocatedAddressDTO(Long id)GeoLocatedAddressDTO(Property<T,? super GeoLocatedAddressDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()LatLongDTOgetLocation()StringgetName()booleanisLocated()voidsetLocated(boolean located)voidsetLocation(LatLongDTO location)voidsetName(String name)-
Methods inherited from class org.cyclos.model.users.addresses.AddressDTO
getAddressLine1, getAddressLine2, getBuildingNumber, getCity, getComplement, getCountry, getNeighborhood, getPoBox, getRegion, getStreet, getZip, setAddressLine1, setAddressLine2, setBuildingNumber, setCity, setComplement, setCountry, setNeighborhood, setPoBox, setRegion, setStreet, setZip, toString
-
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, changes, clearAttributes, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, set, set, setAttribute, setWithPropagationId
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
LOCATED
public static final BasicProperty<Boolean,GeoLocatedAddressDTO> LOCATED
-
LOCATION
public static final BasicProperty<LatLongDTO,GeoLocatedAddressDTO> LOCATION
-
NAME
public static final BasicProperty<String,GeoLocatedAddressDTO> NAME
-
-
Constructor Detail
-
GeoLocatedAddressDTO
public GeoLocatedAddressDTO()
-
GeoLocatedAddressDTO
public GeoLocatedAddressDTO(Long id)
-
GeoLocatedAddressDTO
public GeoLocatedAddressDTO(Property<T,? super GeoLocatedAddressDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classAddressDTO
-
isLocated
public boolean isLocated()
-
setLocated
public void setLocated(boolean located)
-
getLocation
public LatLongDTO getLocation()
-
setLocation
public void setLocation(LatLongDTO location)
-
getName
public String getName()
- Specified by:
getNamein interfaceINamedEntity
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceINamedEntity
-
-