|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.inb.biomoby.central.model.AbstractModel<MobyCentral> org.inb.biomoby.central.model.MobyCentralModel
public class MobyCentralModel
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.
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 |
---|
public void setSelectedCentral(MobyCentral selected)
selected
- - a BioMoby Registry to work withpublic MobyCentral getSelectedCentral()
public List<MobyCentral> getElements()
getElements
in class AbstractModel<MobyCentral>
public boolean addElement(MobyCentral element)
addElement
in class AbstractModel<MobyCentral>
element
- - a new BioMoby Registry to be added into the model
public boolean removeElement(MobyCentral element)
removeElement
in class AbstractModel<MobyCentral>
element
- - a BioMoby Registry to be removed from the model
public boolean updateElement(MobyCentral element1, MobyCentral element2)
updateElement
in class AbstractModel<MobyCentral>
element1
- - BioMoby Registry element to be updatedelement2
- - a new, updated, BioMoby Registry element
public static MobyCentralModel instance()
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |