Enum Class TransitiveImportMethodAllowance
java.lang.Object
java.lang.Enum<TransitiveImportMethodAllowance>
it.uniroma2.art.semanticturkey.ontology.TransitiveImportMethodAllowance
- All Implemented Interfaces:
Serializable
,Comparable<TransitiveImportMethodAllowance>
,Constable
This enumeration defines the sources from which the system is authorized to resolve transitive imports.
- Author:
- Manuel Fiorelli
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOnly use of the ontology manager is allowedUse of the ontology mirror is preferred, but in case of failure it is possible to download from the webTransitive imports are disallowedOnly the download from the web is allowedDownload form the web is preferred, but in case of failure it is possible to use the ontology mirror -
Method Summary
Modifier and TypeMethodDescriptionReturns an unmodifiable list of allowed import methodsReturns the enum constant of this class with the specified name.static TransitiveImportMethodAllowance[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
nowhere
Transitive imports are disallowed -
web
Only the download from the web is allowed -
webFallbackToMirror
Download form the web is preferred, but in case of failure it is possible to use the ontology mirror -
mirrorFallbackToWeb
Use of the ontology mirror is preferred, but in case of failure it is possible to download from the web -
mirror
Only use of the ontology manager is allowed
-
-
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
-
getAllowedMethods
Returns an unmodifiable list of allowed import methods- Returns:
-