public static class ResourceType.Builder extends Object
ResourceType
objects.Constructor and Description |
---|
ResourceType.Builder(String qualifier)
Creates a new
ResourceType.Builder |
Modifier and Type | Method and Description |
---|---|
ResourceType.Builder |
availableForFilters()
Deprecated.
since 3.0. Use
setProperty(String, String) with "supportsMeasureFilters" set to "true". |
ResourceType |
build()
Creates an instance of
ResourceType based on all information given to the builder. |
ResourceType.Builder |
hasSourceCode()
Tells that the resources of this type will have source code.
|
ResourceType.Builder |
setIconPath(String iconPath)
Relative path of the icon used to represent the resource type.
|
ResourceType.Builder |
setProperty(String key,
boolean value) |
ResourceType.Builder |
setProperty(String key,
String value)
Sets a property on the resource type.
|
public ResourceType.Builder(String qualifier)
ResourceType.Builder
qualifier
- public ResourceType.Builder setIconPath(@Nullable String iconPath)
iconPath
- path to icon, relative to context of web-application (e.g. "/images/q/DIR.png")@Deprecated public ResourceType.Builder availableForFilters()
setProperty(String, String)
with "supportsMeasureFilters" set to "true".public ResourceType.Builder hasSourceCode()
public ResourceType.Builder setProperty(String key, String value)
ResourceType
class for more information.public ResourceType.Builder setProperty(String key, boolean value)
public ResourceType build()
ResourceType
based on all information given to the builder.Copyright © 2009-2014 SonarSource. All Rights Reserved.