Version: 1.1.1

org.inb.biomoby.central.model
Class MobyCentralModel

java.lang.Object
  extended by org.inb.biomoby.central.model.AbstractModel<MobyCentral>
      extended by org.inb.biomoby.central.model.MobyCentralModel

public class MobyCentralModel
extends AbstractModel<MobyCentral>

BioMoby registry model implementation class. The class reads a list of BioMoby Registries from "META-INF/MobyCentralList.xml" configuration file This model is to select a default (current) BioMoby Registry the application is working at the moment.

Author:
Dmitry Repchevsky

Method Summary
 boolean addElement(MobyCentral element)
          Method is not implemented
 List<MobyCentral> getElements()
          Method returns all known (stored in "META-INF/MobyCentralList.xml") BioMoby Registries
 MobyCentral getSelectedCentral()
          Method returns a currently active BioMoby Registry
static MobyCentralModel instance()
           
 boolean removeElement(MobyCentral element)
          Method is not implemented
 void setSelectedCentral(MobyCentral selected)
          Method to setup a BioMoby Registry that entire application is working with.
 boolean updateElement(MobyCentral element1, MobyCentral element2)
          Method not implemented
 
Methods inherited from class org.inb.biomoby.central.model.AbstractModel
addListener, getElement
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setSelectedCentral

public void setSelectedCentral(MobyCentral selected)
Method to setup a BioMoby Registry that entire application is working with. The latter should cascade an update in all the models as a consequence.

Parameters:
selected - - a BioMoby Registry to work with

getSelectedCentral

public MobyCentral getSelectedCentral()
Method returns a currently active BioMoby Registry

Returns:
- a currently active BioMoby Registry

getElements

public List<MobyCentral> getElements()
Method returns all known (stored in "META-INF/MobyCentralList.xml") BioMoby Registries

Specified by:
getElements in class AbstractModel<MobyCentral>
Returns:
- a list of BioMoby Registries

addElement

public boolean addElement(MobyCentral element)
Method is not implemented

Specified by:
addElement in class AbstractModel<MobyCentral>
Parameters:
element - - a new BioMoby Registry to be added into the model
Returns:
- true if a new BioMoby Registry has been added

removeElement

public boolean removeElement(MobyCentral element)
Method is not implemented

Specified by:
removeElement in class AbstractModel<MobyCentral>
Parameters:
element - - a BioMoby Registry to be removed from the model
Returns:
- true if a new BioMoby Registry has been removed

updateElement

public boolean updateElement(MobyCentral element1,
                             MobyCentral element2)
Method not implemented

Specified by:
updateElement in class AbstractModel<MobyCentral>
Parameters:
element1 - - BioMoby Registry element to be updated
element2 - - a new, updated, BioMoby Registry element
Returns:
- true if a new BioMoby Registry has been updated

instance

public static MobyCentralModel instance()

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010