public enum OBOIdType extends java.lang.Enum<OBOIdType>
Describes the types of OBO IDs that can be found in OBO Files. Taken from Section 2.5 of the OBO Syntax and Semantics Specification.
Enum Constant and Description |
---|
CANONICAL_PREFIXED_ID
Must contain a colon character in the ID.
|
NON_CANONICAL_PREFIXED_ID
Must contain a colon character somewhere in the ID.
|
UNPREFIXED_ID
Any unprefixed ID.
|
URL_AS_ID
Any string with an http: or https: prefix.
|
Modifier and Type | Method and Description |
---|---|
static OBOIdType |
getIdType(java.lang.String oboId)
Gets the OBOIdType for a given OBO ID.
|
IRI |
getIRIFromOBOId(OWLOntologyID ontologyID,
IDSpaceManager idSpaceManager,
java.lang.String oboId) |
java.util.regex.Pattern |
getPattern() |
static OBOIdType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OBOIdType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OBOIdType URL_AS_ID
public static final OBOIdType UNPREFIXED_ID
public static final OBOIdType CANONICAL_PREFIXED_ID
public static final OBOIdType NON_CANONICAL_PREFIXED_ID
public static OBOIdType[] values()
for (OBOIdType c : OBOIdType.values()) System.out.println(c);
public static OBOIdType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.regex.Pattern getPattern()
public IRI getIRIFromOBOId(OWLOntologyID ontologyID, IDSpaceManager idSpaceManager, java.lang.String oboId)
ontologyID
- idSpaceManager
- oboId
- public static OBOIdType getIdType(java.lang.String oboId)
oboId
- The OBO ID. Must not be null.null
if the specified oboId does not conform to
any OBO Id type.