public class SimpleMerger extends Object
Constructor and Description |
---|
SimpleMerger(EditorMap map) |
SimpleMerger(EditorMap map,
Filter<BioPAXElement> mergeObjPropOf) |
Modifier and Type | Method and Description |
---|---|
void |
merge(Model target,
BioPAXElement source)
Merges the source element (and its "downstream" dependents)
into target model.
|
void |
merge(Model target,
Collection<? extends BioPAXElement> elements)
Merges the elements and all their child biopax objects
into the target model.
|
void |
merge(Model target,
Model... sources)
Merges the source models into target model,
one after another (in the order they are listed).
|
public SimpleMerger(EditorMap map)
map
- a class to editor map for the elements to be modified.public SimpleMerger(EditorMap map, Filter<BioPAXElement> mergeObjPropOf)
map
- a class to editor map for the elements to be modified.mergeObjPropOf
- when not null, all multiple-cardinality properties
of a source biopax object that passes this filter are updated
and also copied to the corresponding (same URI) target object,
unless the source and target are the same thing
(in which case, we simply migrate object properties
to target model objects).public void merge(Model target, Model... sources)
Model.repair()
first).target
- model into which merging process will be donesources
- models to be merged/updated to target; order can be importantpublic void merge(Model target, Collection<? extends BioPAXElement> elements)
target
- model into which merging will be doneelements
- elements that are going to be merged/updated to targetfor details about the target model.
public void merge(Model target, BioPAXElement source)
target
- the BioPAX model to merge intosource
- object to add or mergemerge(Model, Collection)
Copyright © 2015 BioPAX. All rights reserved.