Package org.biopax.paxtools.controller
Class Merger
java.lang.Object
org.biopax.paxtools.controller.Merger
- All Implemented Interfaces:
Visitor
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAfter a merge is accomplished, this set will contain the newly added elements.After a merge is accomplished, this set will contain the merged elements.voidMerges the source models into target model.voidvisit(BioPAXElement domain, 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.
-
Constructor Details
-
Merger
- Parameters:
map- a class to editor map containing the editors for the elements of models to be modified.
-
-
Method Details
-
visit
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. -
getMergedElements
After a merge is accomplished, this set will contain the merged elements. This is not an essential method for paxtools functionality, but it may be useful for 3rd party applications.- Returns:
- a hashet of merged elements in the target
- See Also:
-
getAddedElements
After a merge is accomplished, this set will contain the newly added elements. This is not an essential method for paxtools functionallity, but it may be useful for 3rd party applications.- Returns:
- a hashet of newly added elements in the target
- See Also:
-
merge
Merges the source models into target model.- Parameters:
target- model into which merging process will be donesources- model(s) that are going to be merged with target
-