Package org.sonar.api.rules
Enum CleanCodeAttribute
- java.lang.Object
-
- java.lang.Enum<CleanCodeAttribute>
-
- org.sonar.api.rules.CleanCodeAttribute
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CleanCodeAttribute>
public enum CleanCodeAttribute extends java.lang.Enum<CleanCodeAttribute>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLEAR
COMPLETE
CONVENTIONAL
DISTINCT
EFFICIENT
FOCUSED
FORMATTED
IDENTIFIABLE
LAWFUL
LOGICAL
MODULAR
RESPECTFUL
TESTED
TRUSTWORTHY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CleanCodeAttribute
defaultCleanCodeAttribute()
CleanCodeAttributeCategory
getAttributeCategory()
static CleanCodeAttribute
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CleanCodeAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONVENTIONAL
public static final CleanCodeAttribute CONVENTIONAL
-
FORMATTED
public static final CleanCodeAttribute FORMATTED
-
IDENTIFIABLE
public static final CleanCodeAttribute IDENTIFIABLE
-
CLEAR
public static final CleanCodeAttribute CLEAR
-
COMPLETE
public static final CleanCodeAttribute COMPLETE
-
EFFICIENT
public static final CleanCodeAttribute EFFICIENT
-
LOGICAL
public static final CleanCodeAttribute LOGICAL
-
DISTINCT
public static final CleanCodeAttribute DISTINCT
-
FOCUSED
public static final CleanCodeAttribute FOCUSED
-
MODULAR
public static final CleanCodeAttribute MODULAR
-
TESTED
public static final CleanCodeAttribute TESTED
-
LAWFUL
public static final CleanCodeAttribute LAWFUL
-
RESPECTFUL
public static final CleanCodeAttribute RESPECTFUL
-
TRUSTWORTHY
public static final CleanCodeAttribute TRUSTWORTHY
-
-
Method Detail
-
values
public static CleanCodeAttribute[] 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 (CleanCodeAttribute c : CleanCodeAttribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CleanCodeAttribute valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getAttributeCategory
public CleanCodeAttributeCategory getAttributeCategory()
-
defaultCleanCodeAttribute
public static CleanCodeAttribute defaultCleanCodeAttribute()
-
-