public enum ReplicaType extends Enum<ReplicaType>
Enum Constant and Description |
---|
BITARCHIVE
bitarchive replica which contain files stored in repository.
|
CHECKSUM
Checksum replica which contains checksums of files in repository.
|
NO_REPLICA_TYPE
If no replica type has been set.
|
Modifier and Type | Field and Description |
---|---|
static String |
BITARCHIVE_REPLICATYPE_AS_STRING
String representation of the ReplicaType.BITARCHIVE.
|
static String |
CHECKSUM_REPLICATYPE_AS_STRING
String representation of the ReplicaType.CHECKSUM.
|
Modifier and Type | Method and Description |
---|---|
static ReplicaType |
fromOrdinal(int ordinal)
Helper method that gives a proper object from e.g.
|
static ReplicaType |
fromSetting(String s)
Helper method that gives a proper object from e.g.
|
static ReplicaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicaType NO_REPLICA_TYPE
public static final ReplicaType BITARCHIVE
public static final ReplicaType CHECKSUM
public static final String BITARCHIVE_REPLICATYPE_AS_STRING
public static final String CHECKSUM_REPLICATYPE_AS_STRING
public static ReplicaType[] values()
for (ReplicaType c : ReplicaType.values()) System.out.println(c);
public static ReplicaType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ReplicaType fromOrdinal(int ordinal)
ordinal
- a certain integer for a replica typeArgumentNotValid
- If argument rt does not correspond to a ReplicaTypepublic static ReplicaType fromSetting(String s)
s
- A string representing a ReplicaType.ArgumentNotValid
- If argument s is nullCopyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.