Save This Page
Home » openjdk-7 » javax » management » [javadoc | source]
    1   /*
    2    * JBoss, the OpenSource J2EE webOS
    3    *
    4    * Distributable under LGPL license.
    5    * See terms of license at gnu.org.
    6    */
    7   package javax.management;
    8   
    9   import java.io.Serializable;
   10   
   11   /**
   12    * An implementation of single value expression.
   13    * 
   14    * @author  <a href="mailto:Adrian.Brock@HappeningTimes.com">Adrian Brock</a>.
   15    * @version $Revision: 1.1 $
   16    */
   17   /*package*/ class SingleValueExpSupport
   18      extends ValueExpSupport
   19   {
   20      // Constants ---------------------------------------------------
   21   
   22      // Attributes --------------------------------------------------
   23   
   24      /**
   25       * The value of this object
   26       */
   27      private Object value;
   28   
   29      // Static ------------------------------------------------------
   30   
   31      // Constructor -------------------------------------------------
   32   
   33      /**
   34       * Construct a value expression for the passed value
   35       *
   36       * @param value the value
   37       */
   38      public SingleValueExpSupport(Object value)
   39      {
   40         this.value = value;
   41      }
   42   
   43      // Public ------------------------------------------------------
   44   
   45      /**
   46       * Get the value of the expression
   47       */
   48      public Object getValue()
   49      {
   50         return value;
   51      }
   52   
   53      // X implementation --------------------------------------------
   54   
   55      // Object overrides --------------------------------------------
   56   
   57      public String toString()
   58      {
   59         return value.toString();
   60      }
   61   
   62      // Protected ---------------------------------------------------
   63   
   64      // Private -----------------------------------------------------
   65   
   66      // Inner classes -----------------------------------------------
   67   }

Save This Page
Home » openjdk-7 » javax » management » [javadoc | source]