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/ParamDefEntity.java,v 1.4 2003/09/19 16:18:28 sfb Exp $
   10    */
   11   package net.sf.rvpf.metadata;
   12   
   13   /** ParamDef Entity.
   14    * 
   15    * @author Serge Brisson
   16    * @version $Revision: 1.4 $
   17    */
   18   public class ParamDefEntity extends DefEntity {
   19   
   20       // Public Class Constants.
   21       
   22       public static final String PREFIX = "M";
   23   
   24       // Instance Properties.
   25   
   26       /** Asks if this ParamDef allows multiple values.
   27        * 
   28        * @return True when a refering Param can have more than one value.
   29        */
   30       public boolean isMultiple() {
   31           return this.multiple;
   32       }
   33   
   34       /**
   35        */
   36       public String getPrefix() {
   37           return PREFIX + this.type;
   38       }
   39   
   40       /** Remembers if this ParamDef allows multiple values.
   41        * 
   42        * @param multiple True when a refering Param can have more than one value.
   43        */
   44       public void setMultiple(boolean multiple) {
   45           this.multiple = multiple;
   46       }
   47   
   48       /** Sets the type of this ParamDef.
   49        * <p>
   50        * The ParamDef type is used to avoid name collisions with
   51        * unrelated ParamDef instances.  It will be included in
   52        * the class prefix to avoid such collisions.
   53        * 
   54        * @param type The type.
   55        */
   56       public void setType(String type) {
   57           this.type = type;
   58       }
   59   
   60       // Instance Attributes.
   61   
   62       private boolean multiple = false;
   63       private String type = null;
   64   }
   65   
   66   // $Log: ParamDefEntity.java,v $
   67   // Revision 1.4  2003/09/19 16:18:28  sfb
   68   // Refactored DefEntity.
   69   //
   70   
   71   /*
   72    * This is free software; you can redistribute it and/or modify
   73    * it under the terms of the GNU Lesser General Public License
   74    * as published by the Free Software Foundation; either version 2.1
   75    * of the License, or (at your option) any later version.
   76    *
   77    * This software is distributed in the hope that it will be useful,
   78    * but WITHOUT ANY WARRANTY; without even the implied warranty of
   79    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   80    * Lesser General Public License for more details.
   81    *
   82    * You should have received a copy of the GNU Lesser General Public
   83    * License along with this software; if not, write to the Free Software
   84    * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   85    */

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