org.biopax.paxtools.controller
Class Cloner
java.lang.Object
org.biopax.paxtools.controller.Cloner
- All Implemented Interfaces:
- Visitor
public class Cloner
- extends java.lang.Object
- implements Visitor
Specifically "Clones" the BioPAX elements set
(traverses to obtain dependent elements),
puts them to the new model using the visitor and traverser framework;
ignores elements that are not in the source list (compare to Fetcher)
- See Also:
Visitor,
Traverser
|
Method Summary |
Model |
clone(Model source,
java.util.Set<BioPAXElement> toBeCloned)
For each element from the 'toBeCloned' list,
it creates a copy in the new model, setting all
the data properties; however, object property values
that refer to BioPAX elements not in 'toBeCloned' list
are ignored. |
void |
visit(BioPAXElement domain,
java.lang.Object range,
Model model,
PropertyEditor editor)
An implementation of this method should perform a BioPAX element
and editor dependent operation on the model. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cloner
public Cloner(EditorMap map,
BioPAXFactory factory)
clone
public Model clone(Model source,
java.util.Set<BioPAXElement> toBeCloned)
- For each element from the 'toBeCloned' list,
it creates a copy in the new model, setting all
the data properties; however, object property values
that refer to BioPAX elements not in 'toBeCloned' list
are ignored.
- Parameters:
source - toBeCloned -
- Returns:
visit
public void visit(BioPAXElement domain,
java.lang.Object range,
Model model,
PropertyEditor editor)
- Description copied from interface:
Visitor
- An implementation of this method should perform a BioPAX element
and editor dependent operation on the model. Examples of uses of this
method include adding a BioPAX element--with all its dependent
elements that can be reached via the editor--into the model, or
updating an element that is equivalent to the given BioPAX element
using the latter's/former's values.
- Specified by:
visit in interface Visitor
- Parameters:
domain - BioPAXElement which is the domain of this propertyrange - Object which is the range of this propertymodel - model on which the visiting operation will be doneeditor - editor
Copyright © 2011 BioPAX. All Rights Reserved.