org.sonar.api.config
Class PropertyDefinitions

java.lang.Object
  extended by 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

Constructor Summary
PropertyDefinitions(Object... components)
           
 
Method Summary
 PropertyDefinitions addComponent(Object object)
           
 PropertyDefinitions addComponent(Object component, String defaultCategory)
           
 PropertyDefinitions addComponents(Collection components)
           
 PropertyDefinitions addComponents(Collection components, String defaultCategory)
           
 String getCategory(Property prop)
           
 String getCategory(String key)
           
 String getDefaultValue(String key)
           
 Collection<Property> getProperties()
           
 Property getProperty(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDefinitions

public PropertyDefinitions(Object... components)
Method Detail

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)

getProperty

public Property getProperty(String key)

getProperties

public Collection<Property> getProperties()

getDefaultValue

public String getDefaultValue(String key)

getCategory

public String getCategory(String key)

getCategory

public String getCategory(Property prop)


Copyright © 2009-2011 SonarSource. All Rights Reserved.