Hi,
I've got a class model with the following structure:
class BusinessPartner
interface Customer
interface Supplier
and some classes:
class BasicCustomer extends BusinessPartner implements Customer
class BasicSupplier extends BusinessPartner implements Supplier
class SupplyingCustomer extends BusinessPartner implements Customer, Supplier
BusinessPartner holds a Set of value indicating if the Class implements Supplier or Customer. (i.e. String[] {"Customer","Supplier"}).
How can I map the values, to retrieve BasicCustomer or BasicSupplier if only one value is present and a SupplyingCustomer if both values are present?
Any ideas which interfaces to implement or what keyword to search for?
Thx
Joerg
3.0.4
|