org.sonar.api.config
Class PropertyDefinitions
java.lang.Object
org.sonar.api.config.PropertyDefinitions
- All Implemented Interfaces:
- BatchComponent, ServerComponent
public final class PropertyDefinitions
- extends Object
- implements BatchComponent, ServerComponent
Metadata of all the properties declared by plugins
- Since:
- 2.12
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyDefinitions
public PropertyDefinitions(Object... components)
PropertyDefinitions
public PropertyDefinitions(Collection<PropertyDefinition> components)
addComponents
public PropertyDefinitions addComponents(Collection components)
addComponents
public PropertyDefinitions addComponents(Collection components,
String defaultCategory)
addComponent
public PropertyDefinitions addComponent(Object object)
addComponent
public PropertyDefinitions addComponent(Object component,
String defaultCategory)
get
public PropertyDefinition get(String key)
getAll
public Collection<PropertyDefinition> getAll()
validKey
public String validKey(String key)
getPropertiesByCategory
@Deprecated
public Map<String,Map<String,Collection<PropertyDefinition>>> getPropertiesByCategory(@Nullable
String qualifier)
- Deprecated. since 3.7 use
propertiesByCategory(String)
- Since:
- 3.6
getPropertiesByCategory
@Deprecated
public Map<String,Map<String,Collection<PropertyDefinition>>> getPropertiesByCategory()
- Deprecated. since 3.7 use
propertiesByCategory(String)
- Since:
- 3.6
propertiesByCategory
public Map<Category,Map<SubCategory,Collection<PropertyDefinition>>> propertiesByCategory(@Nullable
String qualifier)
- Since:
- 3.7
getDefaultValue
public String getDefaultValue(String key)
getCategory
public String getCategory(String key)
getSubCategory
public String getSubCategory(String key)
getCategory
public String getCategory(Property prop)
getNewKey
public String getNewKey(String deprecatedKey)
getDeprecatedKey
public String getDeprecatedKey(String key)
Copyright © 2009-2014 SonarSource. All Rights Reserved.