JNative v1.3 project : see http://jnative.sf.net


org.xvolks.jnative.misc.registry
Enum RegValueTypes

java.lang.Object
  extended by java.lang.Enum<RegValueTypes>
      extended by org.xvolks.jnative.misc.registry.RegValueTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RegValueTypes>

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

The following registry value types are defined in Winnt.h.

Value Type
REG_BINARY Binary data in any form.
REG_DWORD A 32-bit number.
REG_DWORD_LITTLE_ENDIAN A 32-bit number in little-endian format.

Windows is designed to run on little-endian computer architectures. Therefore, this value is defined as REG_DWORD in the Windows header files.

REG_DWORD_BIG_ENDIAN A 32-bit number in big-endian format.

Some UNIX systems support big-endian architectures.

REG_EXPAND_SZ A null-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). It will be a Unicode or ANSI string depending on whether you use the Unicode or ANSI functions. To expand the environment variable references, use the ExpandEnvironmentStrings function.
REG_LINK Reserved for system use.
REG_MULTI_SZ A sequence of null-terminated strings, terminated by an empty string (\0).

The following is an example:

String1\0String2\0String3\0LastString\0\0

The first \0 terminates the first string, the second to the last \0 terminates the last string, and the final \0 terminates the sequence. Note that the final terminator must be factored into the length of the string.

REG_NONE No defined value type.
REG_QWORD A 64-bit number.
REG_QWORD_LITTLE_ENDIAN A 64-bit number in little-endian format.

Windows is designed to run on little-endian computer architectures. Therefore, this value is defined as REG_QWORD in the Windows header files.

REG_SZ A null-terminated string. This will be either a Unicode or an ANSI string, depending on whether you use the Unicode or ANSI functions.

$Id: RegValueTypes.java,v 1.1 2006/06/05 21:22:02 mdenty Exp $ This software is released under the LGPL.


Enum Constant Summary
REG_BINARY
           
REG_DWORD
           
REG_DWORD_BIG_ENDIAN
           
REG_DWORD_LITTLE_ENDIAN
           
REG_EXPAND_SZ
          Unicode nul terminated string (with environment variable references)
REG_FULL_RESOURCE_DESCRIPTOR
           
REG_LINK
           
REG_MULTI_SZ
           
REG_NONE
          No value type
REG_QWORD
           
REG_QWORD_LITTLE_ENDIAN
           
REG_RESOURCE_LIST
           
REG_RESOURCE_REQUIREMENTS_LIST
           
REG_SZ
          Unicode nul terminated string
 
Method Summary
static RegValueTypes fromInt(java.lang.Integer value)
           
 int getValue()
           
static RegValueTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RegValueTypes[] 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

REG_NONE

public static final RegValueTypes REG_NONE
No value type


REG_SZ

public static final RegValueTypes REG_SZ
Unicode nul terminated string


REG_EXPAND_SZ

public static final RegValueTypes REG_EXPAND_SZ
Unicode nul terminated string (with environment variable references)


REG_BINARY

public static final RegValueTypes REG_BINARY

REG_DWORD

public static final RegValueTypes REG_DWORD

REG_DWORD_LITTLE_ENDIAN

public static final RegValueTypes REG_DWORD_LITTLE_ENDIAN

REG_DWORD_BIG_ENDIAN

public static final RegValueTypes REG_DWORD_BIG_ENDIAN

REG_LINK

public static final RegValueTypes REG_LINK

REG_MULTI_SZ

public static final RegValueTypes REG_MULTI_SZ

REG_RESOURCE_LIST

public static final RegValueTypes REG_RESOURCE_LIST

REG_FULL_RESOURCE_DESCRIPTOR

public static final RegValueTypes REG_FULL_RESOURCE_DESCRIPTOR

REG_RESOURCE_REQUIREMENTS_LIST

public static final RegValueTypes REG_RESOURCE_REQUIREMENTS_LIST

REG_QWORD

public static final RegValueTypes REG_QWORD

REG_QWORD_LITTLE_ENDIAN

public static final RegValueTypes REG_QWORD_LITTLE_ENDIAN
Method Detail

values

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

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

valueOf

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

getValue

public int getValue()

fromInt

public static RegValueTypes fromInt(java.lang.Integer value)
                             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

JNative v1.3 project : see http://jnative.sf.net