|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ExistingFileBehavior>
org.opends.server.types.ExistingFileBehavior
@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public enum ExistingFileBehavior
This enumeration defines the set of possible behaviors that should be taken when attempting to write to a file that already exists.
Enum Constant Summary | |
---|---|
APPEND
The file behavior that indicates that the data written should be appended to any existing file. |
|
FAIL
The file behavior that indicates that the write should fail if the specified file already exists. |
|
OVERWRITE
The file behavior that indicates that the data written should overwrite any existing file. |
Method Summary | |
---|---|
java.lang.String |
getName()
Retrieves the name for this existing file behavior. |
java.lang.String |
toString()
Retrieves a string representation of this existing file behavior. |
static ExistingFileBehavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ExistingFileBehavior[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ExistingFileBehavior APPEND
public static final ExistingFileBehavior OVERWRITE
public static final ExistingFileBehavior FAIL
Method Detail |
---|
public static ExistingFileBehavior[] values()
for (ExistingFileBehavior c : ExistingFileBehavior.values()) System.out.println(c);
public static ExistingFileBehavior valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Enum<ExistingFileBehavior>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |