Package org.ehrbase.ehr.knowledge
Enum KnowledgeType
- java.lang.Object
-
- java.lang.Enum<KnowledgeType>
-
- org.ehrbase.ehr.knowledge.KnowledgeType
-
- All Implemented Interfaces:
Serializable,Comparable<KnowledgeType>
public enum KnowledgeType extends Enum<KnowledgeType>
utility class to identify a file extension from a qualifier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExtension()StringgetQualifier()static KnowledgeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static KnowledgeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARCHETYPE
public static final KnowledgeType ARCHETYPE
-
TEMPLATE
public static final KnowledgeType TEMPLATE
-
OPT
public static final KnowledgeType OPT
-
-
Method Detail
-
values
public static KnowledgeType[] 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 (KnowledgeType c : KnowledgeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KnowledgeType 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
-
getQualifier
public String getQualifier()
-
getExtension
public String getExtension()
-
-