org.sonar.api.Property.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中org.sonar.api.Property.<init>()方法的一些代码示例,展示了Property.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.<init>()方法的具体详情如下:
包路径:org.sonar.api.Property
类名称:Property
方法名:<init>

Property.<init>介绍

暂无

代码示例

代码示例来源:origin: SonarSource/sonarqube

@Property(key = "foo", name = "Foo")
static final class PluginWithProperty {
}

代码示例来源:origin: SonarSource/sonarqube

@Property(key = "blankKey", name = "blankName")
public static class BlankPropertyDefinition {
}

代码示例来源:origin: SonarSource/sonarqube

@Property(key = "foo", defaultValue = "bar", name = "Foo")
public static class ComponentWithProperty {
}

代码示例来源:origin: SonarSource/sonarqube

@Property(key = "foo", name = "Foo", defaultValue = "bar")
public static class MyComponent {
}

代码示例来源:origin: SonarSource/sonarqube

@Properties({
  @Property(key = "global1", name = "Global1", category = "catGlobal1", global = true, project = false, module = false),
  @Property(key = "global2", name = "Global2", category = "catGlobal1", global = true, project = false, module = false),
  @Property(key = "global3", name = "Global3", category = "catGlobal2", global = true, project = false, module = false),
  @Property(key = "project", name = "Project", category = "catProject", global = false, project = true, module = false),
  @Property(key = "module", name = "Module", category = "catModule", global = false, project = false, module = true)
 })
 static final class ByCategory {
 }
}

代码示例来源:origin: SonarSource/sonarqube

@Properties({
 @Property(key = "hello", name = "Hello", defaultValue = "world"),
 @Property(key = "date", name = "Date", defaultValue = "2010-05-18"),
 @Property(key = "datetime", name = "DateTime", defaultValue = "2010-05-18T15:50:45+0100"),
 @Property(key = "boolean", name = "Boolean", defaultValue = "true"),
 @Property(key = "falseboolean", name = "False Boolean", defaultValue = "false"),
 @Property(key = "integer", name = "Integer", defaultValue = "12345"),
 @Property(key = "array", name = "Array", defaultValue = "one,two,three"),
 @Property(key = "multi_values", name = "Array", defaultValue = "1,2,3", multiValues = true),
 @Property(key = "sonar.jira", name = "Jira Server", type = PropertyType.PROPERTY_SET, propertySetKey = "jira"),
 @Property(key = "newKey", name = "New key", deprecatedKey = "oldKey"),
 @Property(key = "newKeyWithDefaultValue", name = "New key with default value", deprecatedKey = "oldKeyWithDefaultValue", defaultValue = "default_value"),
 @Property(key = "new_multi_values", name = "New multi values", defaultValue = "1,2,3", multiValues = true, deprecatedKey = "old_multi_values")
})
private static class Init {
}

代码示例来源:origin: SonarSource/sonarqube

@Properties({
 @Property(key = "one", name = "One"),
 @Property(key = "two", name = "Two", defaultValue = "2")
})
static final class PluginWithProperties {
}

代码示例来源:origin: SonarSource/sonarqube

@Properties({
 @Property(key = "inCateg", name = "In Categ", category = "categ"),
 @Property(key = "noCateg", name = "No categ")
})
static final class Categories {
}

代码示例来源:origin: SonarSource/sonarqube

@Properties({
  @Property(key = "new_key", deprecatedKey = "old_key", name = "Name"),
  @Property(key = "other", name = "Other")
 })
 public static class FakeExtension {

 }
}

代码示例来源:origin: SonarSource/sonarqube

@Property(
 key = UpdateCenterClient.URL_PROPERTY,
 defaultValue = "https://update.sonarsource.org/update-center.properties",

代码示例来源:origin: SonarSource/sonarqube

@Properties({
 @Property(
  key = NotificationDaemon.PROPERTY_DELAY,
  defaultValue = "60",
  name = "Delay of notifications, in seconds",
  global = false),
 @Property(
  key = NotificationDaemon.PROPERTY_DELAY_BEFORE_REPORTING_STATUS,
  defaultValue = "600",

代码示例来源:origin: SonarSource/sonarqube

@Property(key = "eastKey", name = "eastName")
@EastSide
public static class EastSidePropertyDefinition {
}

代码示例来源:origin: SonarSource/sonarqube

@Property(key = "westKey", name = "westName")
@WestSide
public static class WestSidePropertyDefinition {
}

代码示例来源:origin: SonarSource/sonarqube

@Properties({
 @Property(
  key = ScmConfiguration.FORCE_RELOAD_KEY,
  defaultValue = "false",

代码示例来源:origin: SonarSource/sonarqube

@Properties(@Property(key = "hello", name = "Hello", defaultValue = "world", description = "desc",
 options = {"de", "en"}, category = "categ", type = PropertyType.FLOAT, global = false, project = true, module = true, multiValues = true, propertySetKey = "set"))
static class Init {
}

代码示例来源:origin: SonarSource/sonarqube

@Properties(@Property(key = "hello", name = "Hello"))
static class DefaultValues {
}

代码示例来源:origin: SonarSource/sonarqube

@Property(key = "otherKey", name = "otherName")
@OtherSide
public static class OtherSidePropertyDefinition {
}

代码示例来源:origin: SonarSource/sonarqube

@Property(key = "latitudeKey", name = "latitudeName")
@WestSide
@EastSide
public static class LatitudePropertyDefinition {
}

代码示例来源:origin: SonarSource/sonarqube

@Properties({
 @Property(
  key = JSONReport.SONAR_REPORT_EXPORT_PATH,
  name = "Report Results Export File",

代码示例来源:origin: SonarSource/sonarqube

@Properties(@Property(key = "hello", name = "Hello", fields = {
 @PropertyField(key = "first", name = "First", description = "Description", options = {"A", "B"}),
 @PropertyField(key = "second", name = "Second", type = PropertyType.INTEGER, indicativeSize = 5)}))
static class WithPropertySet {
}

相关文章