Save This Page
Home » openjdk-7 » net » sf » rvpf » metadata » [javadoc | source]
    1   /**
    2    * Related Values Processing Framework.
    3    * 
    4    * Copyright (C) 2003 Serge Brisson.
    5    * 
    6    * This software is distributable under LGPL license.
    7    * See details at the bottom of this file.
    8    * 
    9    * $Header: /cvsroot/rvpf/RVPF/java/src/net/sf/rvpf/metadata/ClassLibEntity.java,v 1.3 2003/09/19 16:18:28 sfb Exp $
   10    */
   11   package net.sf.rvpf.metadata;
   12   
   13   import java.net.URL;
   14   import java.util.LinkedList;
   15   import java.util.List;
   16   
   17   /** ClassLib Entity.
   18    * 
   19    * @author Serge Brisson
   20    * @version $Revision: 1.3 $
   21    */
   22   public class ClassLibEntity extends DefEntity {
   23   
   24       // Public Class Constants.
   25       
   26       public static final String PREFIX = "L";
   27   
   28       // Properties.
   29   
   30       /** Asks if this ClassLib has been added to the CLASSPATH.
   31        * 
   32        * @return True if added.
   33        */
   34       public boolean isAdded() {
   35           return this.added;
   36       }
   37   
   38       /** Sets the Added indicator.
   39        * 
   40        * @param added True if the ClassLib is on the CLASSPATH.
   41        */
   42       public void setAdded(boolean added) {
   43           this.added = added;
   44       }
   45   
   46       /** Asks if the ClassLib is cached.
   47        * 
   48        * @return True if cached.
   49        */
   50       public boolean isCached() {
   51           return this.cached;
   52       }
   53   
   54       /** Sets the Cached indicator.
   55        * 
   56        * @param cached True if a local copy is maintained.
   57        */
   58       public void setCached(boolean cached) {
   59           this.cached = cached;
   60       }
   61       
   62       /**
   63        */
   64       public String getPrefix() {
   65           return PREFIX;
   66       }
   67   
   68       /** Gets this ClassLib's UUID.
   69        * 
   70        * @return The UUID.
   71        */
   72       public UUID getUUID() {
   73           return this.uuid;
   74       }
   75   
   76       /** Sets this ClassLib's UUID.
   77        * 
   78        * @param uuid The UUID.
   79        */
   80       public void setUUID(UUID uuid) {
   81           this.uuid = uuid;
   82       }
   83   
   84       /** Gets a List of the URLs from which this ClassLib may be fetched.
   85        * 
   86        * @return The List of URLs.
   87        */
   88       public List getURLs() {
   89           return this.urls;
   90       }
   91   
   92       // Public Instance Methods.
   93   
   94       /** Adds a URL from which this ClassLib may be fetched.
   95        * 
   96        * @param url The URL.
   97        */
   98       public void addURL(URL url) {
   99           this.urls.add(url);
  100       }
  101   
  102       // Instance Attributes.
  103       
  104       private boolean added = false;
  105       private boolean cached = false;
  106       private List urls = new LinkedList();
  107       private UUID uuid = null;
  108   }
  109   
  110   // $Log: ClassLibEntity.java,v $
  111   // Revision 1.3  2003/09/19 16:18:28  sfb
  112   // Refactored DefEntity.
  113   //
  114   
  115   /*
  116    * This is free software; you can redistribute it and/or modify
  117    * it under the terms of the GNU Lesser General Public License
  118    * as published by the Free Software Foundation; either version 2.1
  119    * of the License, or (at your option) any later version.
  120    *
  121    * This software is distributed in the hope that it will be useful,
  122    * but WITHOUT ANY WARRANTY; without even the implied warranty of
  123    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  124    * Lesser General Public License for more details.
  125    *
  126    * You should have received a copy of the GNU Lesser General Public
  127    * License along with this software; if not, write to the Free Software
  128    * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  129    */

Save This Page
Home » openjdk-7 » net » sf » rvpf » metadata » [javadoc | source]