Package org.sonar.api.config
Class PropertyDefinitions
- java.lang.Object
-
- org.sonar.api.config.PropertyDefinitions
-
@ScannerSide @ServerSide @ComputeEngineSide public final class PropertyDefinitions extends java.lang.Object
Metadata of all the properties declared by plugins- Since:
- 2.12
-
-
Constructor Summary
Constructors Constructor Description PropertyDefinitions(java.lang.Object... components)PropertyDefinitions(java.util.Collection<PropertyDefinition> components)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyDefinitionsaddComponent(java.lang.Object object)PropertyDefinitionsaddComponent(java.lang.Object component, java.lang.String defaultCategory)PropertyDefinitionsaddComponents(java.util.Collection components)PropertyDefinitionsaddComponents(java.util.Collection components, java.lang.String defaultCategory)PropertyDefinitionget(java.lang.String key)java.util.Collection<PropertyDefinition>getAll()java.lang.StringgetCategory(java.lang.String key)java.lang.StringgetCategory(Property prop)java.lang.StringgetDefaultValue(java.lang.String key)java.lang.StringgetDeprecatedKey(java.lang.String key)java.lang.StringgetNewKey(java.lang.String deprecatedKey)java.lang.StringgetSubCategory(java.lang.String key)java.util.Map<Category,java.util.Map<SubCategory,java.util.Collection<PropertyDefinition>>>propertiesByCategory(java.lang.String qualifier)java.lang.StringvalidKey(java.lang.String key)
-
-
-
Constructor Detail
-
PropertyDefinitions
public PropertyDefinitions(java.lang.Object... components)
-
PropertyDefinitions
public PropertyDefinitions(java.util.Collection<PropertyDefinition> components)
-
-
Method Detail
-
addComponents
public PropertyDefinitions addComponents(java.util.Collection components)
-
addComponents
public PropertyDefinitions addComponents(java.util.Collection components, java.lang.String defaultCategory)
-
addComponent
public PropertyDefinitions addComponent(java.lang.Object object)
-
addComponent
public PropertyDefinitions addComponent(java.lang.Object component, java.lang.String defaultCategory)
-
get
@CheckForNull public PropertyDefinition get(java.lang.String key)
-
getAll
public java.util.Collection<PropertyDefinition> getAll()
-
validKey
public java.lang.String validKey(java.lang.String key)
-
propertiesByCategory
public java.util.Map<Category,java.util.Map<SubCategory,java.util.Collection<PropertyDefinition>>> propertiesByCategory(@Nullable java.lang.String qualifier)
- Since:
- 3.7
-
getDefaultValue
@CheckForNull public java.lang.String getDefaultValue(java.lang.String key)
-
getCategory
public java.lang.String getCategory(java.lang.String key)
-
getSubCategory
public java.lang.String getSubCategory(java.lang.String key)
-
getCategory
public java.lang.String getCategory(Property prop)
-
getNewKey
public java.lang.String getNewKey(java.lang.String deprecatedKey)
-
getDeprecatedKey
public java.lang.String getDeprecatedKey(java.lang.String key)
-
-