org.sonar.wsclient.services
Class Resource
java.lang.Object
org.sonar.wsclient.services.Model
org.sonar.wsclient.services.Resource
public class Resource
- extends Model
SCOPE_SET
public static final String SCOPE_SET
- See Also:
- Constant Field Values
SCOPE_SPACE
public static final String SCOPE_SPACE
- See Also:
- Constant Field Values
SCOPE_ENTITY
public static final String SCOPE_ENTITY
- See Also:
- Constant Field Values
SCOPE_LIB
public static final String SCOPE_LIB
- See Also:
- Constant Field Values
QUALIFIER_VIEW
public static final String QUALIFIER_VIEW
- See Also:
- Constant Field Values
QUALIFIER_SUBVIEW
public static final String QUALIFIER_SUBVIEW
- See Also:
- Constant Field Values
QUALIFIER_LIB
public static final String QUALIFIER_LIB
- See Also:
- Constant Field Values
QUALIFIER_PROJECT
public static final String QUALIFIER_PROJECT
- See Also:
- Constant Field Values
QUALIFIER_MODULE
public static final String QUALIFIER_MODULE
- See Also:
- Constant Field Values
QUALIFIER_PACKAGE
public static final String QUALIFIER_PACKAGE
- See Also:
- Constant Field Values
QUALIFIER_DIRECTORY
public static final String QUALIFIER_DIRECTORY
- See Also:
- Constant Field Values
QUALIFIER_FILE
public static final String QUALIFIER_FILE
- See Also:
- Constant Field Values
QUALIFIER_CLASS
public static final String QUALIFIER_CLASS
- See Also:
- Constant Field Values
QUALIFIER_UNIT_TEST_CLASS
public static final String QUALIFIER_UNIT_TEST_CLASS
- See Also:
- Constant Field Values
LANGUAGE_JAVA
public static final String LANGUAGE_JAVA
- See Also:
- Constant Field Values
Resource
public Resource()
getId
public Integer getId()
setId
public Resource setId(Integer id)
getKey
public String getKey()
setKey
public Resource setKey(String key)
getDescription
public String getDescription()
setDescription
public Resource setDescription(String description)
getName
public String getName()
getName
public String getName(boolean longFormatIfDefined)
getLongName
public String getLongName()
setLongName
public Resource setLongName(String longName)
setName
public Resource setName(String s)
getScope
public String getScope()
setScope
public Resource setScope(String scope)
getQualifier
public String getQualifier()
setQualifier
public Resource setQualifier(String qualifier)
getLanguage
public String getLanguage()
setLanguage
public Resource setLanguage(String language)
getVersion
public String getVersion()
setVersion
public Resource setVersion(String version)
getCopy
public Integer getCopy()
setCopy
public Resource setCopy(Integer copy)
getMeasures
public List<Measure> getMeasures()
getMeasure
public Measure getMeasure(String metricKey)
getMeasureValue
public Double getMeasureValue(String metricKey)
getMeasureIntValue
public Integer getMeasureIntValue(String metricKey)
getMeasureFormattedValue
public String getMeasureFormattedValue(String metricKey,
String defaultValue)
setMeasures
public void setMeasures(List<Measure> measures)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2010 SonarSource SA. All Rights Reserved.