org.sonar.api.technicaldebt.server.internal
Class DefaultCharacteristic

java.lang.Object
  extended by org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic
All Implemented Interfaces:
Characteristic

public class DefaultCharacteristic
extends Object
implements Characteristic

Since:
4.1

Constructor Summary
DefaultCharacteristic()
           
 
Method Summary
 boolean equals(Object o)
           
 WorkUnit factor()
          Deprecated. since 4.2
 WorkDuration.UNIT factorUnit()
           
 Integer factorValue()
           
 String function()
           
 int hashCode()
           
 Integer id()
           
 boolean isRequirement()
           
 boolean isRoot()
           
 String key()
           
 String name()
           
 WorkUnit offset()
          Deprecated. since 4.2
 WorkDuration.UNIT offsetUnit()
           
 Integer offsetValue()
           
 Integer order()
           
 Integer parentId()
           
 Integer rootId()
           
 RuleKey ruleKey()
           
 DefaultCharacteristic setFactor(WorkUnit factor)
          Deprecated. since 4.2
 DefaultCharacteristic setFactorUnit(WorkDuration.UNIT factorUnit)
           
 DefaultCharacteristic setFactorValue(Integer factorValue)
           
 DefaultCharacteristic setFunction(String function)
           
 DefaultCharacteristic setId(Integer id)
           
 DefaultCharacteristic setKey(String key)
           
 DefaultCharacteristic setName(String name)
           
 DefaultCharacteristic setOffset(WorkUnit offset)
          Deprecated. since 4.2
 DefaultCharacteristic setOffsetUnit(WorkDuration.UNIT offsetUnit)
           
 DefaultCharacteristic setOffsetValue(Integer offsetValue)
           
 DefaultCharacteristic setOrder(Integer order)
           
 DefaultCharacteristic setParentId(Integer parentId)
           
 DefaultCharacteristic setRootId(Integer rootId)
           
 DefaultCharacteristic setRuleKey(RuleKey ruleKey)
           
 String toString()
           
static WorkDuration.UNIT toUnit(String requirementUnit)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultCharacteristic

public DefaultCharacteristic()
Method Detail

id

public Integer id()
Specified by:
id in interface Characteristic

setId

public DefaultCharacteristic setId(Integer id)

key

@CheckForNull
public String key()
Specified by:
key in interface Characteristic

setKey

public DefaultCharacteristic setKey(@Nullable
                                    String key)

name

@CheckForNull
public String name()
Specified by:
name in interface Characteristic

setName

public DefaultCharacteristic setName(@Nullable
                                     String name)

order

@CheckForNull
public Integer order()
Specified by:
order in interface Characteristic

setOrder

public DefaultCharacteristic setOrder(@Nullable
                                      Integer order)

parentId

@CheckForNull
public Integer parentId()
Specified by:
parentId in interface Characteristic

setParentId

public DefaultCharacteristic setParentId(@Nullable
                                         Integer parentId)

rootId

@CheckForNull
public Integer rootId()
Specified by:
rootId in interface Characteristic

setRootId

public DefaultCharacteristic setRootId(@Nullable
                                       Integer rootId)

ruleKey

@CheckForNull
public RuleKey ruleKey()
Specified by:
ruleKey in interface Characteristic

setRuleKey

public DefaultCharacteristic setRuleKey(@Nullable
                                        RuleKey ruleKey)

function

@CheckForNull
public String function()
Specified by:
function in interface Characteristic

setFunction

public DefaultCharacteristic setFunction(@Nullable
                                         String function)

factor

@Deprecated
@CheckForNull
public WorkUnit factor()
Deprecated. since 4.2

Specified by:
factor in interface Characteristic

setFactor

@Deprecated
public DefaultCharacteristic setFactor(@Nullable
                                                  WorkUnit factor)
Deprecated. since 4.2


factorValue

@CheckForNull
public Integer factorValue()
Specified by:
factorValue in interface Characteristic

setFactorValue

public DefaultCharacteristic setFactorValue(@Nullable
                                            Integer factorValue)

factorUnit

@CheckForNull
public WorkDuration.UNIT factorUnit()
Specified by:
factorUnit in interface Characteristic

setFactorUnit

public DefaultCharacteristic setFactorUnit(@Nullable
                                           WorkDuration.UNIT factorUnit)

offset

@Deprecated
public WorkUnit offset()
Deprecated. since 4.2

Specified by:
offset in interface Characteristic

setOffset

@Deprecated
public DefaultCharacteristic setOffset(@Nullable
                                                  WorkUnit offset)
Deprecated. since 4.2


offsetValue

@CheckForNull
public Integer offsetValue()
Specified by:
offsetValue in interface Characteristic

setOffsetValue

public DefaultCharacteristic setOffsetValue(@Nullable
                                            Integer offsetValue)

offsetUnit

@CheckForNull
public WorkDuration.UNIT offsetUnit()
Specified by:
offsetUnit in interface Characteristic

setOffsetUnit

public DefaultCharacteristic setOffsetUnit(@Nullable
                                           WorkDuration.UNIT offsetUnit)

toUnit

public static WorkDuration.UNIT toUnit(@Nullable
                                       String requirementUnit)

isRoot

public boolean isRoot()
Specified by:
isRoot in interface Characteristic

isRequirement

public boolean isRequirement()
Specified by:
isRequirement in interface Characteristic

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 SonarSource. All Rights Reserved.