public abstract class BioPAXFactory extends Object
Modifier | Constructor and Description |
---|---|
protected |
BioPAXFactory()
Protected Constructor without parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canInstantiate(Class<? extends BioPAXElement> aClass)
Checks whether objects of a BioPAX model interface
can be created (some types are not official BioPAX
types, abstract classes).
|
<T extends BioPAXElement> |
create(Class<T> aClass,
String uri)
Universal method that creates a new BioPAX object.
|
BioPAXElement |
create(String localName,
String uri) |
Model |
createModel()
Creates a new BioPAX model.
|
<T extends BioPAXElement> |
getImplClass(Class<T> aModelInterfaceClass)
Get a concrete or abstract BioPAX type (not interface),
from org.biopax.paxtools.impl..*, i.e., one that has
persistence/search annotations, etc.
|
abstract BioPAXLevel |
getLevel()
Gets the level.
|
abstract String |
mapClassName(Class<? extends BioPAXElement> aClass)
Maps a BioPAX type (model interface) to the
full-qualified class name of an implementing class.
|
protected BioPAXFactory()
public abstract BioPAXLevel getLevel()
public BioPAXElement create(String localName, String uri)
public <T extends BioPAXElement> T create(Class<T> aClass, String uri)
T
- typeaClass
- the class that corresponds to the BioPAX typeuri
- absolute URI of the new BioPAX objectpublic abstract String mapClassName(Class<? extends BioPAXElement> aClass)
aClass
- BioPAX type (model interface)public boolean canInstantiate(Class<? extends BioPAXElement> aClass)
aClass
- BioPAX interface classpublic Model createModel()
public <T extends BioPAXElement> Class<T> getImplClass(Class<T> aModelInterfaceClass)
T
- BioPAX type/interfaceaModelInterfaceClass
- interface class for the BioPAX typeCopyright © 2015 BioPAX. All rights reserved.