org.opencrx.kernel.address1.jmi1
Interface Addressable

All Superinterfaces:
Addressable, RefBaseObject, RefFeatured, RefObject, RefObject_1_0
All Known Subinterfaces:
AccountAddress, AccountAddress, ContractAddress, EmailAddress, EmailAddress, EmailAddress, PhoneNumber, PhoneNumber, PhoneNumber, PostalAddress, PostalAddress, PostalAddress, ProductAddress, Room, Room, WebAddress, WebAddress, WebAddress

public interface Addressable
extends Addressable, RefObject_1_0

Abstract class Addressable


Method Summary
 AbstractBuildingUnit getBuilding()
          Retrieves the value for the reference building.
 List<Short> getUsage()
          Retrieves a list containing all the elements for the attribute usage.
 void setBuilding(AbstractBuildingUnit building)
          Sets a new value for the reference building.
 void setUsage(List<Short> usage)
          Clears usage and adds the members of the given List.
 
Methods inherited from interface org.opencrx.kernel.address1.cci2.Addressable
isMain, setMain, setUsage
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getBuilding

AbstractBuildingUnit getBuilding()
Retrieves the value for the reference building.

Specified by:
getBuilding in interface Addressable
Returns:
The – possibly null – value for this reference.

setBuilding

void setBuilding(AbstractBuildingUnit building)
Sets a new value for the reference building.

Specified by:
setBuilding in interface Addressable
Parameters:
building - The non-null new value for this reference.

getUsage

List<Short> getUsage()
Retrieves a list containing all the elements for the attribute usage.

Specified by:
getUsage in interface Addressable
Returns:
A list containing all elements for this attribute.

setUsage

void setUsage(List<Short> usage)
Clears usage and adds the members of the given List.

This method is equivalent to

   list.clear();
   list.addAll(usage);
 
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the equivalent code.

Parameters:
usage - collection to be copied.


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