001    /*
002     * SonarQube, open source software quality management tool.
003     * Copyright (C) 2008-2014 SonarSource
004     * mailto:contact AT sonarsource DOT com
005     *
006     * SonarQube 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     * SonarQube 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     */
020    
021    package org.sonar.api.technicaldebt.server;
022    
023    import org.sonar.api.rule.RuleKey;
024    import org.sonar.api.utils.WorkUnit;
025    import org.sonar.api.utils.internal.WorkDuration;
026    
027    import javax.annotation.CheckForNull;
028    
029    /**
030     * @since 4.1
031     * @deprecated since 4.3.
032     */
033    @Deprecated
034    public interface Characteristic {
035    
036      Integer id();
037    
038      String key();
039    
040      String name();
041    
042      Integer order();
043    
044      @CheckForNull
045      Integer parentId();
046    
047      /**
048       * @deprecated since 4.3. return null
049       */
050      @Deprecated
051      @CheckForNull
052      Integer rootId();
053    
054      /**
055       * @deprecated since 4.3. return null
056       */
057      @Deprecated
058      RuleKey ruleKey();
059    
060      /**
061       * @deprecated since 4.3. return null
062       */
063      @Deprecated
064      String function();
065    
066      /**
067       * @deprecated since 4.2
068       */
069      @Deprecated
070      @CheckForNull
071      WorkUnit factor();
072    
073      /**
074       * @since 4.2
075       */
076      @CheckForNull
077      Integer factorValue();
078    
079      /**
080       * @since 4.2
081       */
082      @CheckForNull
083      WorkDuration.UNIT factorUnit();
084    
085      /**
086       * @deprecated since 4.2
087       */
088      @Deprecated
089      @CheckForNull
090      WorkUnit offset();
091    
092      /**
093       * @since 4.2
094       */
095      @CheckForNull
096      Integer offsetValue();
097    
098      /**
099       * @since 4.2
100       */
101      @CheckForNull
102      WorkDuration.UNIT offsetUnit();
103    
104      boolean isRoot();
105    
106      /**
107       * @deprecated since 4.3
108       */
109      @Deprecated
110      boolean isRequirement();
111    
112    }