ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/oldmodel AbstractUnit.java
Date Tue, 11 Jun 2002 04:18:30 GMT
donaldp     2002/06/10 21:18:30

  Added:       container/src/java/org/apache/myrmidon/interfaces/oldmodel
                        AbstractUnit.java
  Log:
  Add in abstract class from which Project and Target extend
  
  Revision  Changes    Path
  1.1                  jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/oldmodel/AbstractUnit.java
  
  Index: AbstractUnit.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.interfaces.oldmodel;
  
  /**
   * This class is abstract class that {@link Project}
   * and {@link Target} extend to provide information
   * about the build process.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/06/11 04:18:30 $
   */
  public abstract class AbstractUnit
  {
      /**
       * The name of unit.
       */
      private final String m_name;
  
      /**
       * The description of unit.
       */
      private final String m_description;
  
      /**
       * Construct unit with name and specified description.
       *
       * @param name the name of unit
       * @param description the unit description
       */
      protected AbstractUnit( final String name,
                              final String description )
      {
          m_name = name;
          m_description = description;
      }
  
      /**
       * Retrieve the name of the Target.
       *
       * @return the name of the Target.
       */
      public String getName()
      {
          return m_name;
      }
  
      /**
       * Retrieve a description of the target.
       *
       * @return a description of the target.
       */
      public String getDescription()
      {
          return m_description;
      }
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message