owltools.gfx
Enum RelationType

java.lang.Object
  extended by java.lang.Enum<RelationType>
      extended by owltools.gfx.RelationType
All Implemented Interfaces:
Serializable, Comparable<RelationType>

public enum RelationType
extends Enum<RelationType>

hacked crudely from QuickGO TODO: use config object to map relationship types to colors


Nested Class Summary
static class RelationType.Polarity
           
 
Enum Constant Summary
ANCESTOR
           
CONSIDER
           
DEVELOPSFROM
           
HASPART
           
IDENTITY
           
ISA
           
NEGATIVEREGULATES
           
OCCURSIN
           
PARTOF
           
POSITIVEREGULATES
           
REGULATES
           
REPLACEDBY
           
RESULTSIN
           
UNKNOWN
           
 
Field Summary
 String alternativeCode
           
 String code
           
 Color color
           
 String description
           
 String formalCode
           
 RelationType.Polarity polarity
           
 
Method Summary
static EnumSet<RelationType> forCodes(String types)
           
static RelationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RelationType[] 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

ANCESTOR

public static final RelationType ANCESTOR

IDENTITY

public static final RelationType IDENTITY

ISA

public static final RelationType ISA

PARTOF

public static final RelationType PARTOF

REGULATES

public static final RelationType REGULATES

POSITIVEREGULATES

public static final RelationType POSITIVEREGULATES

NEGATIVEREGULATES

public static final RelationType NEGATIVEREGULATES

DEVELOPSFROM

public static final RelationType DEVELOPSFROM

REPLACEDBY

public static final RelationType REPLACEDBY

CONSIDER

public static final RelationType CONSIDER

HASPART

public static final RelationType HASPART

OCCURSIN

public static final RelationType OCCURSIN

RESULTSIN

public static final RelationType RESULTSIN

UNKNOWN

public static final RelationType UNKNOWN
Field Detail

code

public String code

description

public String description

formalCode

public String formalCode

alternativeCode

public String alternativeCode

color

public Color color

polarity

public RelationType.Polarity polarity
Method Detail

values

public static RelationType[] 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 (RelationType c : RelationType.values())
    System.out.println(c);

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

valueOf

public static RelationType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

forCodes

public static EnumSet<RelationType> forCodes(String types)


Copyright © 2010-2012. All Rights Reserved.