1 /***
2 * SubgraphFactory.java
3 *
4 * Project: Dependency Tool
5 *
6 * WHEN WHO WHAT
7 * 06.06.2003 pko initial public release
8 *
9 * Copyright 2003 ELCA Informatique SA
10 * Av. de la Harpe 22-24, 1000 Lausanne 13, Switzerland
11 * www.elca.ch
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public License
15 * as published by the Free Software Foundation; either version 2.1 of
16 * the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
26 * USA
27 */
28
29 package ch.elca.dependency.adapter.grappa;
30
31 import java.util.Hashtable;
32 import att.grappa.Subgraph;
33
34 /***
35 * The <code>att.grappa.Subgraph</code> needs to be adapted to the needs
36 * of the Dependency Tool. This class <code>SubgraphAdapter</code>
37 * presets some properties of the <code>att.grappa.Subgraph</code>, so
38 * that it can be used by the Dependency Tool.
39 *
40 * @author Pawel Kowalski
41 * @version 1.0-beta
42 */
43 public class SubgraphFactory {
44
45 /***
46 * Create a new <code>att.grappa.Subgraph</code> with values preset,
47 * so that we can use it within the Dependency Tool.
48 *
49 * @param subg a <code>Subgraph</code> value
50 * @param name a <code>String</code> value
51 * @return a <code>Subgraph</code> value
52 */
53 public static Subgraph createNewSubgraph(Subgraph subg, String name) {
54 Subgraph subgaph = new Subgraph(subg, name);
55 subgaph.object = new Hashtable();
56 return subgaph;
57 }
58 }
This page was automatically generated by Maven