org.opencrx.kernel.contract1.cci2
Interface AddressContainer

All Known Subinterfaces:
AbstractContract, AbstractContract, AbstractInvoicePosition, AbstractInvoicePosition, AbstractOpportunityPosition, AbstractOpportunityPosition, AbstractQuotePosition, AbstractQuotePosition, AbstractRemovedPosition, AbstractRemovedPosition, AbstractSalesOrderPosition, AbstractSalesOrderPosition, AddressContainer, ContractPosition, ContractPosition, Invoice, Invoice, InvoicePosition, InvoicePosition, Lead, Lead, Opportunity, Opportunity, OpportunityPosition, OpportunityPosition, ProductApplication, ProductApplication, Quote, Quote, QuotePosition, QuotePosition, RemovedPosition, RemovedPosition, SalesOrder, SalesOrder, SalesOrderPosition, SalesOrderPosition
All Known Implementing Classes:
AbstractInvoicePosition, AbstractOpportunityPosition, AbstractQuotePosition, AbstractRemovedPosition, AbstractSalesOrderPosition, Invoice, InvoicePosition, Lead, Opportunity, OpportunityPosition, ProductApplication, Quote, QuotePosition, RemovedPosition, SalesOrder, SalesOrderPosition

public interface AddressContainer

Abstract class AddressContainer


Method Summary
 void addAddress(boolean idIsPersistent, String id, ContractAddress address)
          Adds the specified element to the set of the values for the reference address.
<T extends ContractAddress>
Collection<T>
getAddress()
          Retrieves a set containing all the elements for the reference address.
 ContractAddress getAddress(boolean idIsPersistent, String id)
          Retrieves the value for the reference address for the specified qualifier attribute value.
 

Method Detail

getAddress

<T extends ContractAddress> Collection<T> getAddress()
Retrieves a set containing all the elements for the reference address.

Returns:
A set containing all the elements for this reference.

getAddress

ContractAddress getAddress(boolean idIsPersistent,
                           String id)
Retrieves the value for the reference address for the specified qualifier attribute value.

Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

addAddress

void addAddress(boolean idIsPersistent,
                String id,
                ContractAddress address)
Adds the specified element to the set of the values for the reference address.

Note: This is an extension to the JMI 1 standard.

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
address - The element to be appended.


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.