|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Model
A model acts as a container for BioPAX elements. Every object within a mode must have unique id. A single object can be contained in multiple models.
| Method Summary | ||
|---|---|---|
void |
add(BioPAXElement aBioPAXElement)
This method add the given onject to this model. |
|
|
addNew(java.lang.Class<T> aClass,
java.lang.String id)
This method creates a new object using the model's factory, adds it to the model and returns it. |
|
boolean |
contains(BioPAXElement aBioPAXElement)
This method returns true if the parameter is contained within this model. |
|
boolean |
containsID(java.lang.String id)
This method checks for the biopax element with the given id, returns true if the object with the given id exists. |
|
BioPAXElement |
getByID(java.lang.String id)
This method returns the biopax element with the given id, returns null if the object with the given id does not exist in this model. |
|
BioPAXLevel |
getLevel()
This method returns the level of the objects that are contained within this model. |
|
java.util.Map<java.lang.String,java.lang.String> |
getNameSpacePrefixMap()
This method returns a map of name space prefixes. |
|
java.util.Set<BioPAXElement> |
getObjects()
This method returns a set of objects in the model. |
|
|
getObjects(java.lang.Class<T> filterBy)
This method returns a set of objects in the model of the given class. |
|
boolean |
isAddDependencies()
When addDependencies is false, the model will not check for the dependent objects of a newly added object. |
|
void |
merge(Model source)
Merges the source model into this one. |
|
void |
remove(BioPAXElement aBioPAXElement)
This method removes the given BioPAX Element from the model. |
|
void |
repair()
Attempts to repair the model, i.e., make it self-consistent, integral. |
|
void |
replace(BioPAXElement existing,
BioPAXElement replacement)
Replaces existing BioPAX element with another one, of the same or possibly equivalent type, and updates all the affected references to it (object properties). |
|
void |
setAddDependencies(boolean value)
When set to false, the model will not check for the dependent objects of a newly added object. |
|
void |
setFactory(BioPAXFactory factory)
This method sets the factory this model will use for creating BioPAX objects. |
|
| Method Detail |
|---|
void add(BioPAXElement aBioPAXElement)
IllegalBioPAXArgumentException
aBioPAXElement - to be added
<T extends BioPAXElement> T addNew(java.lang.Class<T> aClass,
java.lang.String id)
aClass - a biopax model interfaceid - of the new object
boolean contains(BioPAXElement aBioPAXElement)
aBioPAXElement - to be checked
BioPAXElement getByID(java.lang.String id)
id - of the object to be retrieved.
boolean containsID(java.lang.String id)
id - of the object to be retrieved.
java.util.Map<java.lang.String,java.lang.String> getNameSpacePrefixMap()
java.util.Set<BioPAXElement> getObjects()
<T extends BioPAXElement> java.util.Set<T> getObjects(java.lang.Class<T> filterBy)
filterBy - class to be used as a filter.
void remove(BioPAXElement aBioPAXElement)
aBioPAXElement - to be removed.void setFactory(BioPAXFactory factory)
addNew(Class, String) method
uses this factory.
factory - this model will use for creating
BioPAX objects.BioPAXLevel getLevel()
void setAddDependencies(boolean value)
value - defining the dependency adding behaviourboolean isAddDependencies()
void merge(Model source)
source - a model to merge
void replace(BioPAXElement existing,
BioPAXElement replacement)
existing - replacement - void repair()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||