org.sonar.api.web
Enum WidgetPropertyType

java.lang.Object
  extended by java.lang.Enum<WidgetPropertyType>
      extended by org.sonar.api.web.WidgetPropertyType
All Implemented Interfaces:
Serializable, Comparable<WidgetPropertyType>

public enum WidgetPropertyType
extends Enum<WidgetPropertyType>


Enum Constant Summary
BOOLEAN
          True/False
FILTER
          Filter id
FLOAT
          Floating point number
INTEGER
          Integer value, positive or negative
METRIC
          Sonar Metric
PASSWORD
          Variation of {#STRING} with masked characters
REGULAR_EXPRESSION
          Regular expression
SINGLE_SELECT_LIST
          Single select list with a list of options
STRING
          Basic single line input field
TEXT
          Multiple line text-area
 
Method Summary
static WidgetPropertyType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WidgetPropertyType[] 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

INTEGER

public static final WidgetPropertyType INTEGER
Integer value, positive or negative


BOOLEAN

public static final WidgetPropertyType BOOLEAN
True/False


FLOAT

public static final WidgetPropertyType FLOAT
Floating point number


STRING

public static final WidgetPropertyType STRING
Basic single line input field


METRIC

public static final WidgetPropertyType METRIC
Sonar Metric

Since:
2.10

FILTER

public static final WidgetPropertyType FILTER
Filter id

Since:
3.1

TEXT

public static final WidgetPropertyType TEXT
Multiple line text-area

Since:
3.2

PASSWORD

public static final WidgetPropertyType PASSWORD
Variation of {#STRING} with masked characters

Since:
3.2

REGULAR_EXPRESSION

public static final WidgetPropertyType REGULAR_EXPRESSION
Regular expression

Since:
3.2

SINGLE_SELECT_LIST

public static final WidgetPropertyType SINGLE_SELECT_LIST
Single select list with a list of options

Since:
3.5
Method Detail

values

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

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

valueOf

public static WidgetPropertyType 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 © 2009-2013 SonarSource. All Rights Reserved.