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    package org.sonar.wsclient.services;
021    
022    import javax.annotation.CheckForNull;
023    import javax.annotation.Nullable;
024    
025    import java.util.List;
026    
027    /**
028     * Experimental
029     */
030    public class DependencyTree extends Model {
031      private String depId;
032      private String resourceId;
033      private String resourceKey;
034      private String resourceName;
035      private String usage;
036      private String resourceScope;
037      private String resourceQualifier;
038      private String resourceVersion;
039      private Integer weight;
040      private List<DependencyTree> to;
041    
042      @CheckForNull
043      public String getDepId() {
044        return depId;
045      }
046    
047      public DependencyTree setDepId(@Nullable String depId) {
048        this.depId = depId;
049        return this;
050      }
051      @CheckForNull
052      public String getResourceId() {
053        return resourceId;
054      }
055    
056      public DependencyTree setResourceId(@Nullable String resourceId) {
057        this.resourceId = resourceId;
058        return this;
059      }
060      @CheckForNull
061      public String getResourceKey() {
062        return resourceKey;
063      }
064    
065      public DependencyTree setResourceKey(@Nullable String resourceKey) {
066        this.resourceKey = resourceKey;
067        return this;
068      }
069      @CheckForNull
070      public String getResourceName() {
071        return resourceName;
072      }
073    
074      public DependencyTree setResourceName(@Nullable String resourceName) {
075        this.resourceName = resourceName;
076        return this;
077      }
078      @CheckForNull
079      public String getUsage() {
080        return usage;
081      }
082    
083      public DependencyTree setUsage(@Nullable String usage) {
084        this.usage = usage;
085        return this;
086      }
087      @CheckForNull
088      public String getResourceScope() {
089        return resourceScope;
090      }
091    
092      public DependencyTree setResourceScope(@Nullable String resourceScope) {
093        this.resourceScope = resourceScope;
094        return this;
095      }
096      @CheckForNull
097      public String getResourceQualifier() {
098        return resourceQualifier;
099      }
100    
101      public DependencyTree setResourceQualifier(@Nullable String resourceQualifier) {
102        this.resourceQualifier = resourceQualifier;
103        return this;
104      }
105      @CheckForNull
106      public String getResourceVersion() {
107        return resourceVersion;
108      }
109    
110      public DependencyTree setResourceVersion(@Nullable String resourceVersion) {
111        this.resourceVersion = resourceVersion;
112        return this;
113      }
114    
115      @CheckForNull
116      public Integer getWeight() {
117        return weight;
118      }
119    
120      public DependencyTree setWeight(@Nullable Integer weight) {
121        this.weight = weight;
122        return this;
123      }
124    
125      public List<DependencyTree> getTo() {
126        return to;
127      }
128    
129      public DependencyTree setTo(List<DependencyTree> to) {
130        this.to = to;
131        return this;
132      }
133    }