org.opcfoundation.ua.core
Enum OpenFileMode

java.lang.Object
  extended by java.lang.Enum<OpenFileMode>
      extended by org.opcfoundation.ua.core.OpenFileMode
All Implemented Interfaces:
Serializable, Comparable<OpenFileMode>, Enumeration

public enum OpenFileMode
extends Enum<OpenFileMode>
implements Enumeration


Enum Constant Summary
Append
           
EraseExisting
           
Read
           
Write
           
 
Field Summary
static EnumSet<OpenFileMode> ALL
           
static NodeId ID
           
static EnumSet<OpenFileMode> NONE
           
 
Method Summary
static UnsignedInteger getMask(Collection<OpenFileMode> list)
           
static UnsignedInteger getMask(OpenFileMode... list)
           
static EnumSet<OpenFileMode> getSet(int mask)
           
static EnumSet<OpenFileMode> getSet(UnsignedInteger mask)
           
 int getValue()
          getValue.
static OpenFileMode valueOf(int value)
           
static OpenFileMode[] valueOf(int[] value)
           
static OpenFileMode valueOf(Integer value)
           
static OpenFileMode[] valueOf(Integer[] value)
           
static OpenFileMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OpenFileMode valueOf(UnsignedInteger value)
           
static OpenFileMode[] valueOf(UnsignedInteger[] value)
           
static OpenFileMode[] 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

Read

public static final OpenFileMode Read

Write

public static final OpenFileMode Write

EraseExisting

public static final OpenFileMode EraseExisting

Append

public static final OpenFileMode Append
Field Detail

ID

public static final NodeId ID

NONE

public static EnumSet<OpenFileMode> NONE

ALL

public static EnumSet<OpenFileMode> ALL
Method Detail

values

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

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

valueOf

public static OpenFileMode 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

getValue

public int getValue()
Description copied from interface: Enumeration

getValue.

Specified by:
getValue in interface Enumeration
Returns:
a int.

valueOf

public static OpenFileMode valueOf(int value)

valueOf

public static OpenFileMode valueOf(Integer value)

valueOf

public static OpenFileMode valueOf(UnsignedInteger value)

valueOf

public static OpenFileMode[] valueOf(int[] value)

valueOf

public static OpenFileMode[] valueOf(Integer[] value)

valueOf

public static OpenFileMode[] valueOf(UnsignedInteger[] value)

getMask

public static UnsignedInteger getMask(OpenFileMode... list)

getMask

public static UnsignedInteger getMask(Collection<OpenFileMode> list)

getSet

public static EnumSet<OpenFileMode> getSet(UnsignedInteger mask)

getSet

public static EnumSet<OpenFileMode> getSet(int mask)


Copyright © 2018. All rights reserved.