Package org.biojava.nbio.structure.io
Enum Class LocalPDBDirectory.FetchBehavior
java.lang.Object
java.lang.Enum<LocalPDBDirectory.FetchBehavior>
org.biojava.nbio.structure.io.LocalPDBDirectory.FetchBehavior
- All Implemented Interfaces:
Serializable
,Comparable<LocalPDBDirectory.FetchBehavior>
,Constable
- Enclosing class:
- LocalPDBDirectory
Controls when the class should fetch files from the ftp server
- Author:
- Spencer Bliven
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFetch missing files from the server.Fetch missing files from the server, also fetch if file present but older than the server file.Fetch missing files from the server.For every file, force downloading from the serverNever fetch from the server; Throw errors for missing files -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static LocalPDBDirectory.FetchBehavior[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOCAL_ONLY
Never fetch from the server; Throw errors for missing files -
FETCH_FILES
Fetch missing files from the server. Don't check for outdated files -
FETCH_IF_OUTDATED
Fetch missing files from the server, also fetch if file present but older than the server file. This requires always querying the server for the last modified time of the file, thus it adds an overhead to getting files from cache. -
FETCH_REMEDIATED
Fetch missing files from the server. Also force the download of files older than "2011/07/12". -
FORCE_DOWNLOAD
For every file, force downloading from the server
-
-
Field Details
-
DEFAULT
-
-
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
-