Enum ObjectType

java.lang.Object
java.lang.Enum<ObjectType>
org.pathvisio.libgpml.model.type.ObjectType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ObjectType>, java.lang.constant.Constable

public enum ObjectType
extends java.lang.Enum<ObjectType>
Possible values for PathwayElement.getObjectType(), such as "DataNode" or "Shape"
Author:
unknown, finterly
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    ANCHOR
    An anchor point on a line pathway element.
    ANNOTATION
    A reference with additional information, e.g.
    CITATION
    A reference to a source of information.
    DATANODE
    A data node pathway element denotes a biological entity that forms a node in a pathway.
    EVIDENCE
    A evidence provides information on type of scientific evidence.
    GRAPHLINE
    A connector pathway element without semantic meaning.
    GROUP
    A pathway element grouping of other pathway elements.
    INTERACTION
    A connector pathway element which represents biological relation between entities.
    LABEL
    A pathway element to attach simple labels to the pathway.
    LINEPOINT
    A point on a line pathway element.
    PATHWAY
    The pathway description, one per pathway.
    SHAPE
    A graphical pathway element with or without a text label.
    STATE
    A state pathway element represents a specific state of the biological entity.
  • Field Summary

    Fields
    Modifier and Type Field Description
    private java.lang.String tag  
    private static java.util.Map<java.lang.String,​ObjectType> TAG_MAP  
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private ObjectType​(java.lang.String aTag)
    Private constructor for object type.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getTag()
    Returns the GPML tag corresponding to this object type, can also function as a human-readable description.
    static ObjectType getTagMapping​(java.lang.String value)
    Return the ObjectType that corresponds to a certain tag.
    static ObjectType valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static ObjectType[] 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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PATHWAY

      public static final ObjectType PATHWAY
      The pathway description, one per pathway. In GPML this is the root tag.
    • DATANODE

      public static final ObjectType DATANODE
      A data node pathway element denotes a biological entity that forms a node in a pathway.
    • STATE

      public static final ObjectType STATE
      A state pathway element represents a specific state of the biological entity. A state is linked to a data node.
    • INTERACTION

      public static final ObjectType INTERACTION
      A connector pathway element which represents biological relation between entities.
    • GRAPHLINE

      public static final ObjectType GRAPHLINE
      A connector pathway element without semantic meaning.
    • LINEPOINT

      public static final ObjectType LINEPOINT
      A point on a line pathway element.
    • ANCHOR

      public static final ObjectType ANCHOR
      An anchor point on a line pathway element.
    • LABEL

      public static final ObjectType LABEL
      A pathway element to attach simple labels to the pathway.
    • SHAPE

      public static final ObjectType SHAPE
      A graphical pathway element with or without a text label.
    • GROUP

      public static final ObjectType GROUP
      A pathway element grouping of other pathway elements.
    • ANNOTATION

      public static final ObjectType ANNOTATION
      A reference with additional information, e.g. some Ontology.
    • CITATION

      public static final ObjectType CITATION
      A reference to a source of information.
    • EVIDENCE

      public static final ObjectType EVIDENCE
      A evidence provides information on type of scientific evidence.
  • Field Details

    • tag

      private java.lang.String tag
    • TAG_MAP

      private static final java.util.Map<java.lang.String,​ObjectType> TAG_MAP
  • Constructor Details

    • ObjectType

      private ObjectType​(java.lang.String aTag)
      Private constructor for object type.
      Parameters:
      aTag - tag used in Gpml for this object type.
  • Method Details

    • values

      public static ObjectType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ObjectType 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
    • getTagMapping

      public static ObjectType getTagMapping​(java.lang.String value)
      Return the ObjectType that corresponds to a certain tag. Returns null if no such ObjectType exists.
      Parameters:
      value - the string value.
      Returns:
      the object type for given string.
    • getTag

      public java.lang.String getTag()
      Returns the GPML tag corresponding to this object type, can also function as a human-readable description.
      Returns:
      the string value for object type.