|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biopax.paxtools.controller.Merger
public class Merger
Utility class to merge multiple biopax models into one. Note that this merger does not preserve the integrity of the passed models. Target will be a merged model and source will become unusable.
| Constructor Summary | |
|---|---|
Merger(EditorMap map)
|
|
| Method Summary | |
|---|---|
java.util.HashSet<BioPAXElement> |
getAddedElements()
After a merge is accomplished, this set will contain the newly added elements. |
java.util.HashSet<BioPAXElement> |
getMergedElements()
After a merge is accomplished, this set will contain the merged elements. |
void |
merge(Model target,
Model... sources)
Merges the source models into target model. |
void |
visit(BioPAXElement domain,
java.lang.Object range,
Model model,
PropertyEditor editor)
Checks whether model contains bpe element, and if it does, then it updates the value of the equivalent element for bpe by using the specific editor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Merger(EditorMap map)
map - a class to editor map containing the editors for the elements of models to be
modified.| Method Detail |
|---|
public void visit(BioPAXElement domain,
java.lang.Object range,
Model model,
PropertyEditor editor)
visit in interface Visitordomain - range - model - model containing the equivalent element's equivalenteditor - editor specific for the value type to be updatedpublic java.util.HashSet<BioPAXElement> getMergedElements()
merge(org.biopax.paxtools.model.Model, org.biopax.paxtools.model.Model...)public java.util.HashSet<BioPAXElement> getAddedElements()
merge(org.biopax.paxtools.model.Model, org.biopax.paxtools.model.Model...)
public void merge(Model target,
Model... sources)
target - model into which merging process will be donesources - model(s) that are going to be merged with target
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||