Package org.obolibrary.robot
Enum RelationType
- java.lang.Object
-
- java.lang.Enum<RelationType>
-
- org.obolibrary.robot.RelationType
-
- All Implemented Interfaces:
Serializable
,Comparable<RelationType>
public enum RelationType extends Enum<RelationType>
Enum containing all possible relation types.- Author:
- Becky Tauber
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANCESTORS
ANNOTATION_PROPERTIES
CHILDREN
CLASSES
DATA_PROPERTIES
DESCENDANTS
EQUIVALENTS
INDIVIDUALS
OBJECT_PROPERTIES
PARENTS
PROPERTIES
SELF
TYPES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RelationType
getRelationType(String name)
static boolean
isRelationType(String name)
String
toString()
Return the name of the RelationType.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.
-
-
-
Enum Constant Detail
-
SELF
public static final RelationType SELF
-
CHILDREN
public static final RelationType CHILDREN
-
PARENTS
public static final RelationType PARENTS
-
DESCENDANTS
public static final RelationType DESCENDANTS
-
ANCESTORS
public static final RelationType ANCESTORS
-
EQUIVALENTS
public static final RelationType EQUIVALENTS
-
TYPES
public static final RelationType TYPES
-
CLASSES
public static final RelationType CLASSES
-
PROPERTIES
public static final RelationType PROPERTIES
-
INDIVIDUALS
public static final RelationType INDIVIDUALS
-
OBJECT_PROPERTIES
public static final RelationType OBJECT_PROPERTIES
-
ANNOTATION_PROPERTIES
public static final RelationType ANNOTATION_PROPERTIES
-
DATA_PROPERTIES
public static final RelationType DATA_PROPERTIES
-
-
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 nameNullPointerException
- if the argument is null
-
toString
public String toString()
Return the name of the RelationType.- Overrides:
toString
in classEnum<RelationType>
- Returns:
- string name
-
getRelationType
public static RelationType getRelationType(String name)
-
isRelationType
public static boolean isRelationType(String name)
-
-