Package org.biopax.paxtools.impl
Class MockFactory
java.lang.Object
org.biopax.paxtools.model.BioPAXFactory
org.biopax.paxtools.impl.MockFactory
This factory returns decorated objects for testing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbindArrays(String editor, BioPAXElement[] beans, BioPAXElement[] values) voidbindArrays(ObjectPropertyEditor editor, BioPAXElement[] beans, BioPAXElement[] values) voidbindInPairs(String editor, BioPAXElement... pairs) voidbindInPairs(ObjectPropertyEditor editor, BioPAXElement... pairs) <T extends BioPAXElement>
TUniversal method that creates a new BioPAX object.<T extends BioPAXElement>
T[]<T extends BioPAXElement>
T[]editor(String property, Class<? extends BioPAXElement> clazz) getLevel()Gets the level.mapClassName(Class<? extends BioPAXElement> aClass) Maps a BioPAX type (model interface) to the full-qualified class name of an implementing class.Methods inherited from class org.biopax.paxtools.model.BioPAXFactory
canInstantiate, createModel, getImplClass
-
Constructor Details
-
MockFactory
-
-
Method Details
-
create
Description copied from class:BioPAXFactoryUniversal method that creates a new BioPAX object. (works with non-public, other package, implementations)- Overrides:
createin classBioPAXFactory- Type Parameters:
T- type- Parameters:
aClass- the class that corresponds to the BioPAX typeuri- absolute URI of the new BioPAX object- Returns:
- new BioPAX object
-
create
- Overrides:
createin classBioPAXFactory
-
getLevel
Description copied from class:BioPAXFactoryGets the level.- Specified by:
getLevelin classBioPAXFactory- Returns:
- the biopax level
-
mapClassName
Description copied from class:BioPAXFactoryMaps a BioPAX type (model interface) to the full-qualified class name of an implementing class. BioPAX factories have to implement this method.- Specified by:
mapClassNamein classBioPAXFactory- Parameters:
aClass- BioPAX type (model interface)- Returns:
- full class name
-
create
public <T extends BioPAXElement> T[] create(Model model, Class<T> biopaxClass, int number, String pre) -
create
-
bindInPairs
-
bindArrays
-
bindInPairs
-
bindArrays
-
editor
-