edu.udo.cs.miningmart.m4.utils
Class InterM4MCFeatureBaseAttribute

java.lang.Object
  extended by edu.udo.cs.miningmart.m4.utils.InterM4Communicator
      extended by edu.udo.cs.miningmart.m4.utils.InterM4MCFeatureBaseAttribute

public class InterM4MCFeatureBaseAttribute
extends InterM4Communicator

Helper class for standard communication between MultiColumnFeature (container) and BaseAttribute.

Version:
$Id: InterM4MCFeatureBaseAttribute.java,v 1.4 2006/09/27 14:59:54 euler Exp $
Author:
Martin Scholz

Constructor Summary
InterM4MCFeatureBaseAttribute()
           
 
Method Summary
 java.util.Collection getCollection(java.lang.Object mcfeature)
          Each container object contains a collection, which has to be backed, so an "add" or "remove" to the collection results in a corresponding "add" or "remove" to the underlying container data structure.
 java.lang.Object getSingleRef(M4Object baseattribute)
          The M4Object different from the container object needs to have a reference to the container class.
 void setSingleRefPrimitive(M4Object baseattribute, java.lang.Object mcfeature)
          The M4Object different from the container object needs to have a reference to the container class.
 
Methods inherited from class edu.udo.cs.miningmart.m4.utils.InterM4Communicator
add, checkNameExists, remove, setCollectionTo, updateReferenceTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterM4MCFeatureBaseAttribute

public InterM4MCFeatureBaseAttribute()
Method Detail

getSingleRef

public java.lang.Object getSingleRef(M4Object baseattribute)
                              throws M4Exception
Description copied from class: InterM4Communicator
The M4Object different from the container object needs to have a reference to the container class.

Parameters:
baseattribute - a BaseAttribute
Returns:
the BaseAttribute's MultiColumnFeature
Throws:
M4Exception
See Also:
InterM4Communicator.getSingleRef(M4Object)

getCollection

public java.util.Collection getCollection(java.lang.Object mcfeature)
                                   throws M4Exception
Description copied from class: InterM4Communicator
Each container object contains a collection, which has to be backed, so an "add" or "remove" to the collection results in a corresponding "add" or "remove" to the underlying container data structure. This method must never return null, but a backed empty Collection instead!

Parameters:
mcfeature - a MultiColumnFeature
Returns:
the MultiColumnFeature's Collection of BaseAttributes
Throws:
M4Exception
See Also:
InterM4Communicator#getCollection(M4Object)

setSingleRefPrimitive

public void setSingleRefPrimitive(M4Object baseattribute,
                                  java.lang.Object mcfeature)
                           throws M4Exception
Description copied from class: InterM4Communicator
The M4Object different from the container object needs to have a reference to the container class. This method is a primitive setter for this field. It should consist of a single assignment.

Parameters:
baseattribute - a BaseAttribute
mcfeature - a MultiColumnFeature
Throws:
M4Exception
See Also:
InterM4Communicator#setSingleRefPrimitive(M4Object, M4Object)


Copyright © 2001-2005