View Javadoc

1   // Copyright 2006-2007, by the California Institute of Technology.
2   // ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged.
3   // Any commercial use must be negotiated with the Office of Technology Transfer
4   // at the California Institute of Technology.
5   //
6   // This software is subject to U. S. export control laws and regulations
7   // (22 C.F.R. 120-130 and 15 C.F.R. 730-774). To the extent that the software
8   // is subject to U.S. export control laws and regulations, the recipient has
9   // the responsibility to obtain export licenses or other export authority as
10  // may be required before exporting such information to foreign countries or
11  // providing access to foreign nationals.
12  //
13  // $Id: Scalar.java 2606 2007-04-18 19:35:09Z pramirez $ 
14  //
15  
16  package gov.nasa.pds.tools.label;
17  
18  /***
19   * This class represents a Scalar which can be assigned to an 
20   * attribute or be a part of a Set or Sequence.
21   * @author pramirez
22   * @version $Revision: 2606 $
23   * 
24   */
25  public abstract class Scalar implements Value {
26      private String value;
27      
28      /***
29       * Constructs a Scalar
30       * @param value
31       */
32      protected Scalar(String value) {
33          this.value = value;
34      }
35      
36      /***
37       * Retrieves the value
38       * @return the value
39       */
40      public String getValue() {
41          return value;
42      }
43      
44      public String toString() {
45          return value;
46      }
47  }