org.sonar.api.server.rule
Class RuleParamType

java.lang.Object
  extended by org.sonar.api.server.rule.RuleParamType

public final class RuleParamType
extends Object

Since:
4.2

Field Summary
static RuleParamType BOOLEAN
           
static RuleParamType FLOAT
           
static RuleParamType INTEGER
           
static RuleParamType STRING
           
static RuleParamType TEXT
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 boolean multiple()
           
static RuleParamType multipleListOfValues(String... acceptedValues)
           
static RuleParamType parse(String s)
           
static RuleParamType singleListOfValues(String... acceptedValues)
           
 String toString()
           
 String type()
           
 List<String> values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STRING

public static final RuleParamType STRING

TEXT

public static final RuleParamType TEXT

BOOLEAN

public static final RuleParamType BOOLEAN

INTEGER

public static final RuleParamType INTEGER

FLOAT

public static final RuleParamType FLOAT
Method Detail

type

public String type()

values

public List<String> values()

multiple

public boolean multiple()

singleListOfValues

public static RuleParamType singleListOfValues(String... acceptedValues)

multipleListOfValues

public static RuleParamType multipleListOfValues(String... acceptedValues)

parse

public static RuleParamType parse(String s)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 SonarSource. All Rights Reserved.