org.opencrx.kernel.product1.cci2
Interface AddressContainer

All Known Subinterfaces:
AbstractProduct, AbstractProduct, AddressContainer, Asset, Asset, Product, Product
All Known Implementing Classes:
Asset, Product

public interface AddressContainer

Abstract class AddressContainer


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

Method Detail

getAddress

<T extends ProductAddress> 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

ProductAddress 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,
                ProductAddress 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.