Package org.semanticweb.owlapi.model
Enum Class MissingImportHandlingStrategy
java.lang.Object
java.lang.Enum<MissingImportHandlingStrategy>
org.semanticweb.owlapi.model.MissingImportHandlingStrategy
- All Implemented Interfaces:
Serializable
,Comparable<MissingImportHandlingStrategy>
,java.lang.constant.Constable
,ByName<MissingImportHandlingStrategy>
public enum MissingImportHandlingStrategy
extends Enum<MissingImportHandlingStrategy>
implements ByName<MissingImportHandlingStrategy>
Specifies how missing imports should be treated during loading.
- Since:
- 3.3
- Author:
- Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that anUnloadableImportException
will NOT be thrown during ontology loading if an import cannot be loaded (for what ever reason).Specifies that anUnloadableImportException
WILL be thrown during ontology loading if an import cannot be loaded. -
Method Summary
Modifier and TypeMethodDescriptionbyName
(CharSequence name) Returns the enum constant of this class with the specified name.static MissingImportHandlingStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SILENT
Specifies that anUnloadableImportException
will NOT be thrown during ontology loading if an import cannot be loaded (for what ever reason). Instead, any registeredMissingImportListener
s will be informed of the problem via theirMissingImportListener.importMissing(org.semanticweb.owlapi.model.MissingImportEvent)
method. -
THROW_EXCEPTION
Specifies that anUnloadableImportException
WILL be thrown during ontology loading if an import cannot be loaded.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
byName
- Specified by:
byName
in interfaceByName<MissingImportHandlingStrategy>
- Parameters:
name
- the name to map to an object- Returns:
- the object associated with name
-