View Javadoc
1   /*
2    * Copyright (c) 2007 Creative Sphere Limited.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the Eclipse Public License v1.0
5    * which accompanies this distribution, and is available at
6    * http://www.eclipse.org/legal/epl-v10.html
7    *
8    * Contributors:
9    *
10   *   Creative Sphere - initial API and implementation
11   *
12   */
13  package org.abstracthorizon.extend.repository.maven.pom;
14  
15  public class DependencyManagement {
16  
17      protected Dependencies dependencies;
18      
19      public DependencyManagement() {
20          
21      }
22      
23      public Dependencies getDependencies() {
24          return dependencies;
25      }
26  
27  
28      public Dependencies addDependencies() {
29          if (dependencies == null) {
30              dependencies = new Dependencies();
31          }
32          return dependencies;
33      }
34  
35      public String toString(int indent) {
36          StringBuffer res = new StringBuffer();
37          if (dependencies != null) {
38              ToStringHelper.openTag("dependencyManagement", res, indent);
39              res.append(dependencies.toString(indent + 2));
40              ToStringHelper.closeTag("dependencyManagement", res, indent);
41          }
42          return res.toString();
43      }
44  
45      public String toString() {
46          return toString(0);
47      }
48  }