Package org.biopax.paxtools.model
Enum Class BioPAXLevel
- All Implemented Interfaces:
Serializable,Comparable<BioPAXLevel>,Constable
Enumeration type for BioPAX levels.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the default factory for this levelThis method returns the filename of the owl fileClass<? extends BioPAXElement>getInterfaceForName(String localName) Gets the BioPAX type (java interface) by name.This method loads the level file as resource and returns it as an input streamstatic BioPAXLevelgetLevelFromNameSpace(String namespace) This method returns the namespace defined for this level.booleanhasElement(BioPAXElement element) static booleanisInBioPAXNameSpace(String nameSpace) This method returns true if the given string starts with the BP_PREFIXstatic BioPAXLevelReturns the enum constant of this class with the specified name.static BioPAXLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
L2
-
L3
-
-
Field Details
-
BP_PREFIX
This is the prefix used for all biopax releases.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getFilename
This method returns the filename of the owl file- Returns:
- the filename of the owl file
-
getDefaultFactory
This method returns the default factory for this level- Returns:
- he default factory for this level
-
getLevelFileAsStream
This method loads the level file as resource and returns it as an input stream- Returns:
- an input stream from the owl file.
-
getNameSpace
This method returns the namespace defined for this level.- Returns:
- namespace defined for this level.
-
isInBioPAXNameSpace
This method returns true if the given string starts with the BP_PREFIX- Parameters:
nameSpace- to be checked- Returns:
- rue if the given string starts with the BP_PREFIX
-
getLevelFromNameSpace
-
getPackageName
-
hasElement
-
getInterfaceForName
Gets the BioPAX type (java interface) by name.- Parameters:
localName- a BioPAX type name- Returns:
- the BioPAX interface class
- Throws:
IllegalBioPAXArgumentException- when there is no such type / class not found.
-