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 (maximum length is 2000)
DOUBLE
           
FILE
          The absolute path to a file on the target platform (maximum length is 2000)
FLOAT
           
INTEGER
           
LONG
           
LONG_STRING
          Multi-line strings (maximum length is 2000)
PASSWORD
          Strings where the value is hidden at entry and not redisplayed (maximum length is 2000)
STRING
          Single-line strings (maximum length is 2000)
 
Method Summary
static PropertySimpleType fromXmlName(String xmlName)
           
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.
 String xmlName()
           
 
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 (maximum length is 2000)


LONG_STRING

public static final PropertySimpleType LONG_STRING
Multi-line strings (maximum length is 2000)


PASSWORD

public static final PropertySimpleType PASSWORD
Strings where the value is hidden at entry and not redisplayed (maximum length is 2000)


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 (maximum length is 2000)


DIRECTORY

public static final PropertySimpleType DIRECTORY
The absolute path to a directory on the target platform (maximum length is 2000)

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

xmlName

public String xmlName()

fromXmlName

public static PropertySimpleType fromXmlName(String xmlName)


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.