at.ac.tuwien.vitalab.hrcrm.adaptor
Interface AddressAdaptor<T>

Type Parameters:
T - A place holder for an address object.

public interface AddressAdaptor<T>

Author:
Vassil Nikolov

Method Summary
 at.ac.tuwien.vitalab.hrcrm.dto.address.AddressType address2AddressType(T address)
          Converts the given address object to an AddressType object.
 T addressType2Address(at.ac.tuwien.vitalab.hrcrm.dto.address.AddressType addressType)
          Converts the given AddressType object to an address object.
 T createAdressFromGivenId(java.lang.String addressId)
          Create and return an address object with the given id.
 T getAdressInstance()
          Create and return an empty address object.
 

Method Detail

getAdressInstance

T getAdressInstance()
Create and return an empty address object.

Returns:
An address object, which fields should not be initialised.

createAdressFromGivenId

T createAdressFromGivenId(java.lang.String addressId)
Create and return an address object with the given id.

Parameters:
addressId - Id which have to be set to the address object.
Returns:
An address object with initialised id.

address2AddressType

at.ac.tuwien.vitalab.hrcrm.dto.address.AddressType address2AddressType(T address)
Converts the given address object to an AddressType object.

Parameters:
address - Address to be converted.
Returns:
An AddressType object.

addressType2Address

T addressType2Address(at.ac.tuwien.vitalab.hrcrm.dto.address.AddressType addressType)
Converts the given AddressType object to an address object.

Parameters:
addressType - AddressType to be converted.
Returns:
An address object.


Copyright © 2008 null. All Rights Reserved.