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

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

public class InterM4CaseChain
extends InterM4Communicator

Helper class for standard communication between Case (container) and Chain.

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

Constructor Summary
InterM4CaseChain()
           
 
Method Summary
 java.util.Collection getCollection(java.lang.Object caseObj)
          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 chain)
          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

InterM4CaseChain

public InterM4CaseChain()
Method Detail

getSingleRef

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

Parameters:
chain - a Chain
Returns:
the Chain's Case
Throws:
M4Exception
See Also:
InterM4Communicator.getSingleRef(M4Object)

getCollection

public java.util.Collection getCollection(java.lang.Object caseObj)
                                   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:
caseObj - a Case
Returns:
the Case's Collection of Chains
Throws:
M4Exception
See Also:
InterM4Communicator#getCollection(M4Object)


Copyright © 2001-2005