owltools.gfx
Enum RelationType
java.lang.Object
java.lang.Enum<RelationType>
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
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
UNKNOWN
public static final RelationType UNKNOWN
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
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.