com.prosysopc.ua
Enum FileTypeOpenMode

java.lang.Object
  extended by java.lang.Enum<FileTypeOpenMode>
      extended by com.prosysopc.ua.FileTypeOpenMode
All Implemented Interfaces:
Serializable, Comparable<FileTypeOpenMode>

public enum FileTypeOpenMode
extends Enum<FileTypeOpenMode>


Enum Constant Summary
Append
           
EraseExisting
           
Read
           
Write
           
 
Method Summary
static EnumSet<FileTypeOpenMode> getSet(int bitset)
          Get the enumeration set corresponding to the bitset value used to deliver the mode value.
static EnumSet<FileTypeOpenMode> getSet(org.opcfoundation.ua.builtintypes.UnsignedByte mask)
          Get the enumeration set corresponding to the bitset value used to deliver the mode value.
 org.opcfoundation.ua.builtintypes.UnsignedByte getValue()
          The value of the mode.
static org.opcfoundation.ua.builtintypes.UnsignedByte getValue(EnumSet<FileTypeOpenMode> modes)
          Get the bitset value corresponding to the modes.
static org.opcfoundation.ua.builtintypes.UnsignedByte getValue(FileTypeOpenMode... mode)
          Get the bitset value corresponding to the modes.
static FileTypeOpenMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FileTypeOpenMode[] 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

Append

public static final FileTypeOpenMode Append

EraseExisting

public static final FileTypeOpenMode EraseExisting

Read

public static final FileTypeOpenMode Read

Write

public static final FileTypeOpenMode Write
Method Detail

values

public static FileTypeOpenMode[] 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 (FileTypeOpenMode c : FileTypeOpenMode.values())
    System.out.println(c);

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

valueOf

public static FileTypeOpenMode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getSet

public static EnumSet<FileTypeOpenMode> getSet(int bitset)
Get the enumeration set corresponding to the bitset value used to deliver the mode value.

Parameters:
bitset - the bitset value
Returns:
the respective EnumSet

getSet

public static EnumSet<FileTypeOpenMode> getSet(org.opcfoundation.ua.builtintypes.UnsignedByte mask)
Get the enumeration set corresponding to the bitset value used to deliver the mode value.

Parameters:
bitset - the bitset value
Returns:
the respective EnumSet

getValue

public static org.opcfoundation.ua.builtintypes.UnsignedByte getValue(EnumSet<FileTypeOpenMode> modes)
Get the bitset value corresponding to the modes.

Parameters:
modes - the open mode(s)
Returns:
the respective bitset

getValue

public static org.opcfoundation.ua.builtintypes.UnsignedByte getValue(FileTypeOpenMode... mode)
Get the bitset value corresponding to the modes.

Parameters:
mode - the open mode(s)
Returns:
the respective bitset

getValue

public org.opcfoundation.ua.builtintypes.UnsignedByte getValue()
The value of the mode.

Returns:
the value


Copyright © 2018. All rights reserved.