Enum BuiltinPrefix
- java.lang.Object
-
- java.lang.Enum<BuiltinPrefix>
-
- org.incenp.obofoundry.sssom.model.BuiltinPrefix
-
- All Implemented Interfaces:
Serializable,Comparable<BuiltinPrefix>
public enum BuiltinPrefix extends Enum<BuiltinPrefix>
URL prefixes considered builtin by the SSSOM specification. These prefixes do not need to be declared in the curie map that accompanies a SSSOM mapping set.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BuiltinPrefixfromString(String v)Parses a prefix name into one of the built-in prefix.StringgetPrefix()StringgetPrefixName()static BuiltinPrefixvalueOf(String name)Returns the enum constant of this type with the specified name.static BuiltinPrefix[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SSSOM
public static final BuiltinPrefix SSSOM
-
OWL
public static final BuiltinPrefix OWL
-
RDF
public static final BuiltinPrefix RDF
-
RDFS
public static final BuiltinPrefix RDFS
-
SKOS
public static final BuiltinPrefix SKOS
-
SEMAPV
public static final BuiltinPrefix SEMAPV
-
XSD
public static final BuiltinPrefix XSD
-
LINKML
public static final BuiltinPrefix LINKML
-
-
Method Detail
-
values
public static BuiltinPrefix[] 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 (BuiltinPrefix c : BuiltinPrefix.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuiltinPrefix 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
-
getPrefix
public String getPrefix()
- Returns:
- The URL prefix.
-
getPrefixName
public String getPrefixName()
- Returns:
- The standard prefix name for this prefix.
-
fromString
public static BuiltinPrefix fromString(String v)
Parses a prefix name into one of the built-in prefix.- Parameters:
v- The prefix name to parse.- Returns:
- The corresponding prefix, or
nullif the specified name is not a built-in prefix name.
-
-