org.opencrx.kernel.address1.cci
Class AddressableImpl

java.lang.Object
  extended by org.openmdx.base.accessor.jmi.spi.RefObject_1
      extended by org.opencrx.kernel.address1.cci.AddressableImpl
All Implemented Interfaces:
Serializable, PersistenceCapable, RefBaseObject, RefFeatured, RefObject, Addressable, RefObject_1_0

public class AddressableImpl
extends RefObject_1
implements Addressable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.jdo.spi.PersistenceCapable
PersistenceCapable.ObjectIdFieldConsumer, PersistenceCapable.ObjectIdFieldManager, PersistenceCapable.ObjectIdFieldSupplier
 
Field Summary
 
Fields inherited from interface javax.jdo.spi.PersistenceCapable
CHECK_READ, CHECK_WRITE, LOAD_REQUIRED, MEDIATE_READ, MEDIATE_WRITE, READ_OK, READ_WRITE_OK, SERIALIZABLE
 
Constructor Summary
AddressableImpl(Object_1_0 object, RefClass refClass)
           
 
Method Summary
 AbstractBuildingUnit getBuilding()
          Retrieves the value for the optional reference building.
 List getUsage()
           
 short getUsage(int index)
           
 boolean isMain()
          Retrieves the value for the attribute isMain.
protected  boolean isMain(int index)
           
 void removeBuilding()
          Removes the value for the optional reference building.
 void setBuilding(AbstractBuildingUnit newValue)
          Sets a new value for the reference building.
 void setMain(boolean newValue)
          Sets a new value for the attribute isMain.
protected  void setMain(int index, boolean newValue)
           
 void setUsage(List newValue)
           
 void setUsage(short[] newValue)
           
 
Methods inherited from class org.openmdx.base.accessor.jmi.spi.RefObject_1
equals, jdoCopyFields, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsToObjectId, jdoCopyKeyFieldsToObjectId, jdoGetObjectId, jdoGetPersistenceManager, jdoGetTransactionalObjectId, jdoGetVersion, jdoIsDeleted, jdoIsDetached, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty, jdoNewInstance, jdoNewInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoProvideField, jdoProvideFields, jdoReplaceField, jdoReplaceFields, jdoReplaceFlags, jdoReplaceStateManager, refAddEventListener, refAddToUnitOfWork, refAddValue, refAddValue, refAddValue, refClass, refContext, refDefaultFetchGroup, refDelegate, refDelete, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refImmediateComposite, refImmediatePackage, refInitialize, refInitialize, refInvokeOperation, refInvokeOperation, refIsDeleted, refIsDirty, refIsInstanceOf, refIsNew, refIsPersistent, refIsWriteProtected, refMetaObject, refMofId, refOutermostComposite, refOutermostPackage, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refRemoveValue, refRemoveValue, refSetValue, refSetValue, refSetValue, refSetValue, refVerifyConstraints, refWriteProtect, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

AddressableImpl

public AddressableImpl(Object_1_0 object,
                       RefClass refClass)
Method Detail

getBuilding

public AbstractBuildingUnit getBuilding()
Description copied from interface: Addressable
Retrieves the value for the optional reference building.

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

setBuilding

public void setBuilding(AbstractBuildingUnit newValue)
Description copied from interface: Addressable
Sets a new value for the reference building.

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

removeBuilding

public void removeBuilding()
Description copied from interface: Addressable
Removes the value for the optional reference building.

Specified by:
removeBuilding in interface Addressable

isMain

public boolean isMain()
Description copied from interface: Addressable
Retrieves the value for the attribute isMain.

Specified by:
isMain in interface Addressable
Returns:
The non-null value for attribute isMain.

isMain

protected boolean isMain(int index)

setMain

public void setMain(boolean newValue)
Description copied from interface: Addressable
Sets a new value for the attribute isMain.

Specified by:
setMain in interface Addressable
Parameters:
newValue - The non-null new value for attribute isMain.

setMain

protected void setMain(int index,
                       boolean newValue)

getUsage

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

getUsage

public short getUsage(int index)
Specified by:
getUsage in interface Addressable
Parameters:
index - The index of the element to return.
Returns:
The element at the specified position in the list of all values for this attribute.

setUsage

public void setUsage(List newValue)
Specified by:
setUsage in interface Addressable
Parameters:
newValue - A list containing all the new elements for this attribute.

setUsage

public void setUsage(short[] newValue)
Specified by:
setUsage in interface Addressable
Parameters:
newValue - An array containing all the new elements for this attribute.


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