public enum OBOIdType extends 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(String oboId)
Gets the OBOIdType for a given OBO ID.
|
IRI |
getIRIFromOBOId(OWLOntologyID ontologyID,
IDSpaceManager idSpaceManager,
String oboId) |
Pattern |
getPattern() |
static OBOIdType |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic Pattern getPattern()
public IRI getIRIFromOBOId(OWLOntologyID ontologyID, IDSpaceManager idSpaceManager, String oboId)
Copyright © 2012 The University of Manchester. All Rights Reserved.