001/* 002 * Sonar, open source software quality management tool. 003 * Copyright (C) 2008-2012 SonarSource 004 * mailto:contact AT sonarsource DOT com 005 * 006 * Sonar 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 * Sonar 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 017 * License along with Sonar; if not, write to the Free Software 018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 019 */ 020package org.sonar.wsclient.services; 021 022import java.util.List; 023 024/** 025 * Experimental 026 */ 027public class DependencyTree extends Model { 028 private String depId; 029 private String resourceId; 030 private String resourceKey; 031 private String resourceName; 032 private String usage; 033 private String resourceScope; 034 private String resourceQualifier; 035 private String resourceVersion; 036 private int weight; 037 private List<DependencyTree> to; 038 039 public String getDepId() { 040 return depId; 041 } 042 043 public DependencyTree setDepId(String depId) { 044 this.depId = depId; 045 return this; 046 } 047 048 public String getResourceId() { 049 return resourceId; 050 } 051 052 public DependencyTree setResourceId(String resourceId) { 053 this.resourceId = resourceId; 054 return this; 055 } 056 057 public String getResourceKey() { 058 return resourceKey; 059 } 060 061 public DependencyTree setResourceKey(String resourceKey) { 062 this.resourceKey = resourceKey; 063 return this; 064 } 065 066 public String getResourceName() { 067 return resourceName; 068 } 069 070 public DependencyTree setResourceName(String resourceName) { 071 this.resourceName = resourceName; 072 return this; 073 } 074 075 public String getUsage() { 076 return usage; 077 } 078 079 public DependencyTree setUsage(String usage) { 080 this.usage = usage; 081 return this; 082 } 083 084 public String getResourceScope() { 085 return resourceScope; 086 } 087 088 public DependencyTree setResourceScope(String resourceScope) { 089 this.resourceScope = resourceScope; 090 return this; 091 } 092 093 public String getResourceQualifier() { 094 return resourceQualifier; 095 } 096 097 public DependencyTree setResourceQualifier(String resourceQualifier) { 098 this.resourceQualifier = resourceQualifier; 099 return this; 100 } 101 102 public String getResourceVersion() { 103 return resourceVersion; 104 } 105 106 public DependencyTree setResourceVersion(String resourceVersion) { 107 this.resourceVersion = resourceVersion; 108 return this; 109 } 110 111 public int getWeight() { 112 return weight; 113 } 114 115 public DependencyTree setWeight(int weight) { 116 this.weight = weight; 117 return this; 118 } 119 120 public List<DependencyTree> getTo() { 121 return to; 122 } 123 124 public DependencyTree setTo(List<DependencyTree> to) { 125 this.to = to; 126 return this; 127 } 128}