org.rhq.core.domain.configuration.definition
Enum PropertySimpleType

java.lang.Object
  extended by java.lang.Enum<PropertySimpleType>
      extended by org.rhq.core.domain.configuration.definition.PropertySimpleType
All Implemented Interfaces:
Serializable, Comparable<PropertySimpleType>

public enum PropertySimpleType
extends Enum<PropertySimpleType>

These represent the supported data types for PropertySimple values.


Enum Constant Summary
BOOLEAN
          A boolean value - "true" or "false"
DIRECTORY
          The absolute path to a directory on the target platform
DOUBLE
           
FILE
          The absolute path to a file on the target platform
FLOAT
           
INTEGER
           
LONG
           
LONG_STRING
          Multi-line strings
PASSWORD
          Strings where the value is hidden at entry and not redisplayed
STRING
          Single-line strings
 
Method Summary
static PropertySimpleType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PropertySimpleType[] 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

STRING

public static final PropertySimpleType STRING
Single-line strings


LONG_STRING

public static final PropertySimpleType LONG_STRING
Multi-line strings


PASSWORD

public static final PropertySimpleType PASSWORD
Strings where the value is hidden at entry and not redisplayed


BOOLEAN

public static final PropertySimpleType BOOLEAN
A boolean value - "true" or "false"


INTEGER

public static final PropertySimpleType INTEGER

LONG

public static final PropertySimpleType LONG

FLOAT

public static final PropertySimpleType FLOAT

DOUBLE

public static final PropertySimpleType DOUBLE

FILE

public static final PropertySimpleType FILE
The absolute path to a file on the target platform


DIRECTORY

public static final PropertySimpleType DIRECTORY
The absolute path to a directory on the target platform

Method Detail

values

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

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

valueOf

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


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.