org.biopax.paxtools.model
Enum BioPAXLevel

java.lang.Object
  extended by java.lang.Enum<BioPAXLevel>
      extended by org.biopax.paxtools.model.BioPAXLevel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BioPAXLevel>

public enum BioPAXLevel
extends java.lang.Enum<BioPAXLevel>

Enumeration type for BioPAX levels.


Enum Constant Summary
L1
           
L2
           
L3
           
 
Field Summary
static java.lang.String BP_PREFIX
          This is the prefix used for all biopax releases.
 
Method Summary
 BioPAXFactory getDefaultFactory()
          This method returns the default factory for this level
 java.lang.String getFilename()
          This method returns the filename of the owl file
 java.lang.Class<? extends BioPAXElement> getInterfaceForName(java.lang.String localName)
           
 java.io.InputStream getLevelFileAsStream()
          This method loads the level file as resource and returns it as an input stream
static BioPAXLevel getLevelFromNameSpace(java.lang.String namespace)
           
 java.lang.String getNameSpace()
          This method returns the namespace defined for this level.
 java.lang.String getPackageName()
           
 boolean hasElement(BioPAXElement element)
           
static boolean isInBioPAXNameSpace(java.lang.String nameSpace)
          This method returns true if the given string starts with the BP_PREFIX
static BioPAXLevel valueOf(java.lang.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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

L1

public static final BioPAXLevel L1

L2

public static final BioPAXLevel L2

L3

public static final BioPAXLevel L3
Field Detail

BP_PREFIX

public static final java.lang.String BP_PREFIX
This is the prefix used for all biopax releases.

See Also:
Constant Field Values
Method Detail

values

public static BioPAXLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BioPAXLevel c : BioPAXLevel.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BioPAXLevel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getFilename

public java.lang.String getFilename()
This method returns the filename of the owl file

Returns:
the filename of the owl file

getDefaultFactory

public BioPAXFactory getDefaultFactory()
This method returns the default factory for this level

Returns:
he default factory for this level

getLevelFileAsStream

public java.io.InputStream 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

public java.lang.String getNameSpace()
This method returns the namespace defined for this level.

Returns:
namespace defined for this level.

isInBioPAXNameSpace

public static boolean isInBioPAXNameSpace(java.lang.String nameSpace)
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

public static BioPAXLevel getLevelFromNameSpace(java.lang.String namespace)

getPackageName

public java.lang.String getPackageName()

hasElement

public boolean hasElement(BioPAXElement element)

getInterfaceForName

public java.lang.Class<? extends BioPAXElement> getInterfaceForName(java.lang.String localName)


Copyright © 2011 BioPAX. All Rights Reserved.