public enum BioPAXLevel extends Enum<BioPAXLevel>
Modifier and Type | Field and Description |
---|---|
static String |
BP_PREFIX
This is the prefix used for all biopax releases.
|
Modifier and Type | Method and Description |
---|---|
BioPAXFactory |
getDefaultFactory()
This method returns the default factory for this level
|
String |
getFilename()
This method returns the filename of the owl file
|
Class<? extends BioPAXElement> |
getInterfaceForName(String localName)
Gets the BioPAX type (java interface) by name.
|
InputStream |
getLevelFileAsStream()
This method loads the level file as resource and returns it as
an input stream
|
static BioPAXLevel |
getLevelFromNameSpace(String namespace) |
String |
getNameSpace()
This method returns the namespace defined for this level.
|
String |
getPackageName() |
boolean |
hasElement(BioPAXElement element) |
static boolean |
isInBioPAXNameSpace(String nameSpace)
This method returns true if the given string starts with the
BP_PREFIX
|
static BioPAXLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BioPAXLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BioPAXLevel L1
public static final BioPAXLevel L2
public static final BioPAXLevel L3
public static final String BP_PREFIX
public static BioPAXLevel[] values()
for (BioPAXLevel c : BioPAXLevel.values()) System.out.println(c);
public static BioPAXLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getFilename()
public BioPAXFactory getDefaultFactory()
public InputStream getLevelFileAsStream()
public String getNameSpace()
public static boolean isInBioPAXNameSpace(String nameSpace)
nameSpace
- to be checkedpublic static BioPAXLevel getLevelFromNameSpace(String namespace)
public String getPackageName()
public boolean hasElement(BioPAXElement element)
public Class<? extends BioPAXElement> getInterfaceForName(String localName)
localName
- a BioPAX type nameIllegalBioPAXArgumentException
- when there is no such type / class not found.Copyright © 2015 BioPAX. All rights reserved.