package org.rosuda.JGR.rhelp;


/**
 * Value.java from R-project
 */


/*==============================================================================

  Project:

  JAVA Source file for the class Value

  COPYRIGHT (C), 1998, Thomas Baier

 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA



==============================================================================*/


/* -------------------------------- Imports --------------------------------- */


/*==============================================================================
                          Interface of class Value
==============================================================================*/

/*------------------------------------------------------------------------------
  CLASS:    Value
  SUPER:    Object
  CONF. TO:
  PURPOSE:
  NOTES:

  HISTORY:  98-05-08: created
------------------------------------------------------------------------------*/
public class Value extends Object
{
  /*============================================================================
                                Public methods
  ============================================================================*/

  /*----------------------------------------------------------------------------
    INTERFACE:
    PURPOSE:   default constructor

    NOTES:

    PARAMS:
    THROWS:
    RETURNS:   void

    HISTORY:   98-05-08: created
  ----------------------------------------------------------------------------*/
  public Value (String key,String value)
  {
    iKey = key;
    iValue = value;
  }


  /*----------------------------------------------------------------------------
    INTERFACE:
    PURPOSE:

    NOTES:

    PARAMS:
    THROWS:
    RETURNS:   void

    HISTORY:   98-05-08: created
  ----------------------------------------------------------------------------*/
  public void addToValue (String addition)
  {
    iValue += addition;

    return;
  }


  /*----------------------------------------------------------------------------
    INTERFACE:
    PURPOSE:

    NOTES:

    PARAMS:
    THROWS:
    RETURNS:   void

    HISTORY:   98-05-08: created
  ----------------------------------------------------------------------------*/
  public String getKey ()
  {
    return iKey;
  }


  /*----------------------------------------------------------------------------
    INTERFACE:
    PURPOSE:

    NOTES:

    PARAMS:
    THROWS:
    RETURNS:   void

    HISTORY:   98-05-08: created
  ----------------------------------------------------------------------------*/
  public String getValue ()
  {
    return iValue;
  }


  /*============================================================================
                              Protected methods
  ============================================================================*/

  /*============================================================================
                               Private methods
  ============================================================================*/

  /*============================================================================
                             Instance Variables
  ============================================================================*/

  private String iKey;
  private String iValue;


  /*============================================================================
                                Static Data
  ============================================================================*/
}


/*==============================================================================

  HISTORY:

  $Log$
  Revision 1.2  2005/01/15 13:12:27  helbigm
  fully documented

  Revision 1.1  2004/04/24 21:41:48  helbigm
  *** empty log message ***

  Revision 1.2  2004/04/24 21:05:18  helbigm
  put everything to JGR

  Revision 1.1  2004/03/07 12:10:27  helbigm
  *** empty log message ***

  Revision 1.4  2002/05/05 22:34:52  pd
  .subset/.subset2, perfomace tweak in [[.data.frame

  Revision 1.3  1999/08/10 09:56:03  ripley
  change FSF address in copyrights
  add some copyrights in src/gnome and elsewhere

  Revision 1.2  1999/03/04 17:15:19  leisch
  various bugfixes

  Revision 1.1.4.1  1999/03/02 15:19:59  leisch
  search used only kewords, no titles

  Revision 1.1  1998/05/10 02:44:50  baier
  Initial revision


==============================================================================*/


// Local Variables:
// mode: Java
// mode: font-lock
// End:
