org.virtualbox_5_0
Enum FileOpenAction

java.lang.Object
  extended by java.lang.Enum<FileOpenAction>
      extended by org.virtualbox_5_0.FileOpenAction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FileOpenAction>

public enum FileOpenAction
extends java.lang.Enum<FileOpenAction>

What actionIGuestSession.fileOpen(String,org.virtualbox_5_0.FileAccessMode,org.virtualbox_5_0.FileOpenAction,Long)andIGuestSession.fileOpenEx(String,org.virtualbox_5_0.FileAccessMode,org.virtualbox_5_0.FileOpenAction,org.virtualbox_5_0.FileSharingMode,Long,List)should take whether the file being opened exists or not. Interface ID: {12BC97E2-4FC6-A8B4-4F84-0CBF4AB970D2}


Enum Constant Summary
AppendOrCreate
          Opens an existing file and places the file pointer at the end of the file, creates the file if it does not exist.
CreateNew
          Creates a new file is no file exists, fails if there is a file there already.
CreateOrReplace
          Creates a new file, replace any existing file.
OpenExisting
          Opens an existing file, fails if no file exists.
OpenExistingTruncated
          Opens and truncate an existing file, fails if no file exists.
OpenOrCreate
          Opens an existing file, creates a new one if no file exists.
 
Method Summary
static FileOpenAction fromValue(long v)
           
static FileOpenAction fromValue(java.lang.String v)
           
 int value()
           
static FileOpenAction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FileOpenAction[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OpenExisting

public static final FileOpenAction OpenExisting
Opens an existing file, fails if no file exists. (Was "oe".)


OpenOrCreate

public static final FileOpenAction OpenOrCreate
Opens an existing file, creates a new one if no file exists. (Was "oc".)


CreateNew

public static final FileOpenAction CreateNew
Creates a new file is no file exists, fails if there is a file there already. (Was "ce".)


CreateOrReplace

public static final FileOpenAction CreateOrReplace
Creates a new file, replace any existing file. (Was "ca".) NOTE: Currently undefined whether we will inherit mode and ACLs from the existing file or replace them.


OpenExistingTruncated

public static final FileOpenAction OpenExistingTruncated
Opens and truncate an existing file, fails if no file exists. (Was "ot".)


AppendOrCreate

public static final FileOpenAction AppendOrCreate
Opens an existing file and places the file pointer at the end of the file, creates the file if it does not exist. This action implies write access. (Was "oa".) NOTE: Deprecated. Only here for historical reasons. Do not use!

Method Detail

values

public static FileOpenAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FileOpenAction c : FileOpenAction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FileOpenAction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public int value()

fromValue

public static FileOpenAction fromValue(long v)

fromValue

public static FileOpenAction fromValue(java.lang.String v)