org.sonar.api.config
Class PropertyDefinition

java.lang.Object
  extended by org.sonar.api.config.PropertyDefinition

public final class PropertyDefinition
extends Object

Since:
3.0

Nested Class Summary
static class PropertyDefinition.Result
           
 
Method Summary
static PropertyDefinition create(Property annotation)
           
static PropertyDefinition create(String key, PropertyType type, String[] options)
           
 String getCategory()
           
 String getDefaultValue()
           
 String getDescription()
           
 String getKey()
           
 String getName()
           
 String[] getOptions()
           
 PropertyType getType()
           
 boolean isGlobal()
           
 boolean isOnModule()
           
 boolean isOnProject()
           
 PropertyDefinition.Result validate(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static PropertyDefinition create(Property annotation)

create

public static PropertyDefinition create(String key,
                                        PropertyType type,
                                        String[] options)

validate

public PropertyDefinition.Result validate(@Nullable
                                          String value)

getKey

public String getKey()

getDefaultValue

public String getDefaultValue()

getName

public String getName()

getType

public PropertyType getType()

getOptions

public String[] getOptions()

getDescription

public String getDescription()

getCategory

public String getCategory()

isOnProject

public boolean isOnProject()

isOnModule

public boolean isOnModule()

isGlobal

public boolean isGlobal()


Copyright © 2009-2012 SonarSource. All Rights Reserved.