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
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
@Deprecated
public static final String QUALIFIER_PACKAGE
- Deprecated. since 4.2
- 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
@Deprecated
public static final String QUALIFIER_CLASS
- Deprecated. since 4.2
- 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
@CheckForNull
public Integer getId()
setId
public Resource setId(@Nullable
Integer id)
getKey
@CheckForNull
public String getKey()
setKey
public Resource setKey(@Nullable
String key)
getDescription
@CheckForNull
public String getDescription()
setDescription
public Resource setDescription(@Nullable
String description)
getName
@CheckForNull
public String getName()
getName
@CheckForNull
public String getName(boolean longFormatIfDefined)
getLongName
@CheckForNull
public String getLongName()
setLongName
public Resource setLongName(@Nullable
String longName)
setName
public Resource setName(@Nullable
String s)
getScope
@CheckForNull
public String getScope()
setScope
public Resource setScope(@Nullable
String scope)
getQualifier
@CheckForNull
public String getQualifier()
setQualifier
public Resource setQualifier(@Nullable
String qualifier)
getLanguage
@CheckForNull
public String getLanguage()
setLanguage
public Resource setLanguage(@Nullable
String language)
getVersion
@CheckForNull
public String getVersion()
setVersion
public Resource setVersion(@Nullable
String version)
getCopy
@CheckForNull
public Integer getCopy()
setCopy
public Resource setCopy(@Nullable
Integer copy)
getDate
@CheckForNull
public Date getDate()
setDate
public Resource setDate(@Nullable
Date d)
getCreationDate
@CheckForNull
public Date getCreationDate()
setCreationDate
public Resource setCreationDate(@Nullable
Date d)
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)
getPeriod1Mode
@CheckForNull
public String getPeriod1Mode()
- Since:
- 2.5 only on projects, else null
setPeriod1Mode
public Resource setPeriod1Mode(@Nullable
String period1Mode)
- Since:
- 2.5
getPeriod2Mode
@CheckForNull
public String getPeriod2Mode()
- Since:
- 2.5 only on projects, else null
setPeriod2Mode
public Resource setPeriod2Mode(@Nullable
String period2Mode)
- Since:
- 2.5
getPeriod3Mode
@CheckForNull
public String getPeriod3Mode()
- Since:
- 2.5 only on projects, else null
setPeriod3Mode
public Resource setPeriod3Mode(@Nullable
String period3Mode)
- Since:
- 2.5
getPeriod4Mode
@CheckForNull
public String getPeriod4Mode()
- Since:
- 2.5 only on projects, else null
setPeriod4Mode
public Resource setPeriod4Mode(@Nullable
String period4Mode)
- Since:
- 2.5
getPeriod5Mode
@CheckForNull
public String getPeriod5Mode()
- Since:
- 2.5 only on projects, else null
setPeriod5Mode
public Resource setPeriod5Mode(@Nullable
String period5Mode)
- Since:
- 2.5
getPeriod1Param
@CheckForNull
public String getPeriod1Param()
- Since:
- 2.5 only on projects, else null
setPeriod1Param
public Resource setPeriod1Param(@Nullable
String period1Param)
- Since:
- 2.5
getPeriod2Param
@CheckForNull
public String getPeriod2Param()
- Since:
- 2.5 only on projects, else null
setPeriod2Param
public Resource setPeriod2Param(@Nullable
String period2Param)
- Since:
- 2.5
getPeriod3Param
@CheckForNull
public String getPeriod3Param()
- Since:
- 2.5 only on projects, else null
setPeriod3Param
public Resource setPeriod3Param(@Nullable
String period3Param)
- Since:
- 2.5
getPeriod4Param
@CheckForNull
public String getPeriod4Param()
- Since:
- 2.5 only on projects, else null
setPeriod4Param
public Resource setPeriod4Param(@Nullable
String period4Param)
- Since:
- 2.5
getPeriod5Param
@CheckForNull
public String getPeriod5Param()
- Since:
- 2.5 only on projects, else null
setPeriod5Param
public Resource setPeriod5Param(@Nullable
String period5Param)
- Since:
- 2.5
getPeriod1Date
@CheckForNull
public Date getPeriod1Date()
- Since:
- 2.5 only on projects, else null
setPeriod1Date
public Resource setPeriod1Date(@Nullable
Date period1Date)
- Since:
- 2.5
getPeriod2Date
@CheckForNull
public Date getPeriod2Date()
- Since:
- 2.5 only on projects, else null
setPeriod2Date
public Resource setPeriod2Date(@Nullable
Date period2Date)
- Since:
- 2.5
getPeriod3Date
@CheckForNull
public Date getPeriod3Date()
- Since:
- 2.5 only on projects, else null
setPeriod3Date
public Resource setPeriod3Date(@Nullable
Date period3Date)
- Since:
- 2.5
getPeriod4Date
@CheckForNull
public Date getPeriod4Date()
- Since:
- 2.5 only on projects, else null
setPeriod4Date
public Resource setPeriod4Date(@Nullable
Date period4Date)
- Since:
- 2.5
getPeriod5Date
@CheckForNull
public Date getPeriod5Date()
- Since:
- 2.5 only on projects, else null
setPeriod5Date
public Resource setPeriod5Date(@Nullable
Date period5Date)
- Since:
- 2.5
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009–2016 SonarSource. All rights reserved.