org.opencrx.kernel.address1.cci2
Interface Addressable

All Known Subinterfaces:
AccountAddress, AccountAddress, AccountAddress, AccountAddress, Addressable, ContractAddress, ContractAddress, EmailAddress, EmailAddress, EmailAddress, EmailAddress, EmailAddress, EmailAddress, PhoneNumber, PhoneNumber, PhoneNumber, PhoneNumber, PhoneNumber, PhoneNumber, PostalAddress, PostalAddress, PostalAddress, PostalAddress, PostalAddress, PostalAddress, ProductAddress, ProductAddress, Room, Room, Room, Room, WebAddress, WebAddress, WebAddress, WebAddress, WebAddress, WebAddress
All Known Implementing Classes:
AccountAddress, AccountAddress, ContractAddress, EmailAddress, EmailAddress, EmailAddress, PhoneNumber, PhoneNumber, PhoneNumber, PostalAddress, PostalAddress, PostalAddress, ProductAddress, Room, Room, WebAddress, WebAddress, WebAddress

public interface Addressable

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.
 boolean isMain()
          Retrieves the value for the attribute isMain.
 void setBuilding(AbstractBuildingUnit building)
          Sets a new value for the reference building.
 void setMain(boolean isMain)
          Sets a new value for the attribute isMain.
 void setUsage(short... usage)
          Clears usage and adds the given value(s).
 

Method Detail

getBuilding

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

Returns:
The – possibly null – value for this reference.

setBuilding

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

Parameters:
building - The non-null new value for this reference.

isMain

boolean isMain()
Retrieves the value for the attribute isMain.

Returns:
The non-null value for attribute isMain.

setMain

void setMain(boolean isMain)
Sets a new value for the attribute isMain.

Parameters:
isMain - The non-null new value for attribute isMain.

getUsage

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

Returns:
A list containing all elements for this attribute.

setUsage

void setUsage(short... usage)
Clears usage and adds the given value(s).

This method is equivalent to

   list.clear();
   for(short e : attributeName){
     list.add(e);
   }
 

Parameters:
usage - value(s) to be added to usage


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