|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.resources.ResourceType
@Immutable public class ResourceType
Experimental extension to declare types of resources.
Since 3.0, ResourceType object can declare properties that give information about the capabilities of the
resource type. Those properties may be used, of instance, to adapt the Web UI according to the type of
the resource being displayed.
Currently, the following properties can be defined:
Nested Class Summary | |
---|---|
static class |
ResourceType.Builder
Builder used to create ResourceType objects. |
Method Summary | |
---|---|
static ResourceType.Builder |
builder(String qualifier)
Creates a new ResourceType.Builder |
boolean |
equals(Object o)
|
boolean |
getBooleanProperty(String key)
Returns the value of the property for this resource type. |
String |
getIconPath()
Returns the relative path of the icon used to represent the resource type |
String |
getQualifier()
Qualifier is the unique key. |
String |
getStringProperty(String key)
Returns the value of the property for this resource type. |
int |
hashCode()
|
boolean |
hasProperty(String key)
|
boolean |
hasSourceCode()
Tells whether resources of this type has source code or not. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static ResourceType.Builder builder(String qualifier)
ResourceType.Builder
qualifier
- public String getQualifier()
public String getIconPath()
public boolean hasSourceCode()
public boolean hasProperty(String key)
public String getStringProperty(String key)
public boolean getBooleanProperty(String key)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |