001/*
002 * SonarQube
003 * Copyright (C) 2009-2016 SonarSource SA
004 * mailto:contact AT sonarsource DOT com
005 *
006 * This program is free software; you can redistribute it and/or
007 * modify it under the terms of the GNU Lesser General Public
008 * License as published by the Free Software Foundation; either
009 * version 3 of the License, or (at your option) any later version.
010 *
011 * This program is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014 * Lesser General Public License for more details.
015 *
016 * You should have received a copy of the GNU Lesser General Public License
017 * along with this program; if not, write to the Free Software Foundation,
018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
019 */
020package org.sonar.api.technicaldebt.server;
021
022import org.sonar.api.rule.RuleKey;
023import org.sonar.api.utils.WorkUnit;
024import org.sonar.api.utils.internal.WorkDuration;
025
026import javax.annotation.CheckForNull;
027
028/**
029 * @since 4.1
030 * @deprecated since 4.3.
031 */
032@Deprecated
033public interface Characteristic {
034
035  Integer id();
036
037  String key();
038
039  String name();
040
041  Integer order();
042
043  @CheckForNull
044  Integer parentId();
045
046  /**
047   * @deprecated since 4.3. return null
048   */
049  @Deprecated
050  @CheckForNull
051  Integer rootId();
052
053  /**
054   * @deprecated since 4.3. return null
055   */
056  @Deprecated
057  RuleKey ruleKey();
058
059  /**
060   * @deprecated since 4.3. return null
061   */
062  @Deprecated
063  String function();
064
065  /**
066   * @deprecated since 4.2
067   */
068  @Deprecated
069  @CheckForNull
070  WorkUnit factor();
071
072  /**
073   * @since 4.2
074   */
075  @CheckForNull
076  Integer factorValue();
077
078  /**
079   * @since 4.2
080   */
081  @CheckForNull
082  WorkDuration.UNIT factorUnit();
083
084  /**
085   * @deprecated since 4.2
086   */
087  @Deprecated
088  @CheckForNull
089  WorkUnit offset();
090
091  /**
092   * @since 4.2
093   */
094  @CheckForNull
095  Integer offsetValue();
096
097  /**
098   * @since 4.2
099   */
100  @CheckForNull
101  WorkDuration.UNIT offsetUnit();
102
103  boolean isRoot();
104
105  /**
106   * @deprecated since 4.3
107   */
108  @Deprecated
109  boolean isRequirement();
110
111}