railo.runtime.registry
Class RegistryEntry

java.lang.Object
  extended by railo.runtime.registry.RegistryEntry

public final class RegistryEntry
extends Object

represent a single Registry Entry


Field Summary
static String REGDWORD_TOKEN
          Field REGDWORD_TOKEN
static String REGKEY_TOKEN
          Field REGKEY_TOKEN
static String REGSTR_TOKEN
          Field REGSTR_TOKEN
static short TYPE_ANY
          Field TYPE_ANY
static short TYPE_DWORD
          Field TYPE_DWORD
static short TYPE_KEY
          Field TYPE_KEY
static short TYPE_STRING
          Field TYPE_STRING
 
Constructor Summary
RegistryEntry(short type, String key, Object value)
          constructor of the class
 
Method Summary
 String getKey()
           
 short getType()
           
 Object getValue()
           
static String toCFStringType(short type)
          cast a short type to a String Type
 String toString()
           
static String toStringType(short type)
          cast a short type to a String Type
static short toType(String strType)
          cast a String type to a short Type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_STRING

public static final short TYPE_STRING
Field TYPE_STRING

See Also:
Constant Field Values

TYPE_DWORD

public static final short TYPE_DWORD
Field TYPE_DWORD

See Also:
Constant Field Values

TYPE_ANY

public static final short TYPE_ANY
Field TYPE_ANY

See Also:
Constant Field Values

TYPE_KEY

public static final short TYPE_KEY
Field TYPE_KEY

See Also:
Constant Field Values

REGSTR_TOKEN

public static final String REGSTR_TOKEN
Field REGSTR_TOKEN

See Also:
Constant Field Values

REGKEY_TOKEN

public static final String REGKEY_TOKEN
Field REGKEY_TOKEN

See Also:
Constant Field Values

REGDWORD_TOKEN

public static final String REGDWORD_TOKEN
Field REGDWORD_TOKEN

See Also:
Constant Field Values
Constructor Detail

RegistryEntry

public RegistryEntry(short type,
                     String key,
                     Object value)
              throws RegistryException
constructor of the class

Parameters:
type - (RegistryEntry.TYPE_DWORD, RegistryEntry.TYPE_STRING)
key -
value -
Throws:
RegistryException
Method Detail

getKey

public String getKey()
Returns:
Returns the key.

getType

public short getType()
Returns:
Returns the type.

getValue

public Object getValue()
Returns:
Returns the value.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

toType

public static short toType(String strType)
                    throws RegistryException
cast a String type to a short Type

Parameters:
strType -
Returns:
Throws:
RegistryException

toStringType

public static String toStringType(short type)
                           throws RegistryException
cast a short type to a String Type

Parameters:
type -
Returns:
Registry String Type Definition
Throws:
RegistryException

toCFStringType

public static String toCFStringType(short type)
                             throws RegistryException
cast a short type to a String Type

Parameters:
type -
Returns:
Registry String Type Definition
Throws:
RegistryException


Copyright © 2012 Railo