|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.inb.biomoby.central.model.AbstractModel<Namespace>
org.inb.biomoby.central.model.NamespacesModel
public class NamespacesModel
BioMoby namespaces model implementation class.
| Method Summary | |
|---|---|
boolean |
addElement(Namespace element)
Method not implemented and throws an exeption |
Namespace |
get(String namespace)
Method to find a BioMoby namespace object by its name |
List<Namespace> |
getElements()
Method to get all namespaces from the model. |
static NamespacesModel |
instance()
A singleton model creation method. |
void |
modelCleared()
An observer method that starts a model reloading once the default BioMoby Registry model has been changed |
void |
modelObjectChanged(MobyCentral mobyCentral1,
MobyCentral mobyCentral2)
|
void |
modelObjectInserted(MobyCentral mobyCentral)
|
void |
modelObjectRemoved(MobyCentral mobyCentral)
|
void |
reload()
Method to reload the model from a BioMoby Registry (also updating a cache) |
boolean |
removeElement(Namespace element)
Method to unregister a namespace from a BioMoby Registry. |
void |
run()
|
void |
setCentral(MobyCentral central)
Even the method declared public it is recommended to set BioMoby Registry globaly through a MobyCentralModel. |
boolean |
updateElement(Namespace element1,
Namespace element2)
A method that updates an element referred by element1 with data provided by element2. |
| 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 setCentral(MobyCentral central)
central - - BioMoby Registry to get the namespaces frompublic void reload()
public Namespace get(String namespace)
namespace - - a name of BioMoby namespace to be found
public List<Namespace> getElements()
getElements in class AbstractModel<Namespace>public boolean addElement(Namespace element)
addElement in class AbstractModel<Namespace>element - - a new namespace to be registered with BioMoby Registry
public boolean removeElement(Namespace element)
removeElement in class AbstractModel<Namespace>element - - namespace to be unregistered
public boolean updateElement(Namespace element1,
Namespace element2)
updateElement in class AbstractModel<Namespace>element1 - - an namespace in a model to be updatedelement2 - - an namespace that used as a data source to updated one
public void modelCleared()
modelCleared in interface ModelListener<MobyCentral>public void modelObjectInserted(MobyCentral mobyCentral)
modelObjectInserted in interface ModelListener<MobyCentral>public void modelObjectRemoved(MobyCentral mobyCentral)
modelObjectRemoved in interface ModelListener<MobyCentral>
public void modelObjectChanged(MobyCentral mobyCentral1,
MobyCentral mobyCentral2)
modelObjectChanged in interface ModelListener<MobyCentral>public void run()
run in interface Runnablepublic static NamespacesModel instance()
|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||