AntLink.java

  1. // $Id$
  2. /* ====================================================================
  3.  * Copyright (c) 2002-2004, Christophe Labouisse
  4.  * All rights reserved.
  5.  *
  6.  * Redistribution and use in source and binary forms, with or without
  7.  * modification, are permitted provided that the following conditions
  8.  * are met:
  9.  *
  10.  * 1. Redistributions of source code must retain the above copyright
  11.  *    notice, this list of conditions and the following disclaimer.
  12.  *
  13.  * 2. Redistributions in binary form must reproduce the above
  14.  *    copyright notice, this list of conditions and the following
  15.  *    disclaimer in the documentation and/or other materials provided
  16.  *    with the distribution.
  17.  *
  18.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  21.  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  22.  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  23.  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  24.  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  25.  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  26.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  27.  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  28.  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  29.  * OF THE POSSIBILITY OF SUCH DAMAGE.
  30.  */

  31. package net.ggtools.grand.ant;

  32. import net.ggtools.grand.graph.Graph;
  33. import net.ggtools.grand.graph.LinkImpl;
  34. import net.ggtools.grand.graph.Node;
  35. import net.ggtools.grand.graph.visit.LinkVisitor;

  36. /**
  37.  * A basic (<em>i.e.</em> dependency) link in Ant build file.
  38.  *
  39.  * @author Christophe Labouisse
  40.  */
  41. public class AntLink extends LinkImpl {

  42.     /**
  43.      * Creates a new link.
  44.      *
  45.      * @param name String
  46.      * @param graph Graph
  47.      * @param startNode Node
  48.      * @param endNode Node
  49.      */
  50.     public AntLink(final String name, final Graph graph,
  51.             final Node startNode, final Node endNode) {
  52.         super(name, graph, startNode, endNode);
  53.     }

  54.     /**
  55.      * Method accept.
  56.      * @param visitor LinkVisitor
  57.      * @see net.ggtools.grand.graph.Link#accept(net.ggtools.grand.graph.visit.LinkVisitor)
  58.      */
  59.     @Override
  60.     public void accept(final LinkVisitor visitor) {
  61.         visitor.visitLink(this);
  62.     }

  63. }