gov.nasa.pds.tools.label
Class Scalar

java.lang.Object
  extended by gov.nasa.pds.tools.label.Scalar
All Implemented Interfaces:
Value
Direct Known Subclasses:
DateTime, Numeric, Symbol, TextString

public abstract class Scalar
extends Object
implements Value

This class represents a Scalar which can be assigned to an attribute or be a part of a Set or Sequence.

Version:
$Revision: 8263 $
Author:
pramirez, jagander

Constructor Summary
protected Scalar(String value)
          Constructs a Scalar
 
Method Summary
 boolean equals(Object object)
           
 String getValue()
          Retrieves the value
 int hashcode()
           
abstract  boolean isSupportedPDSType(Constants.DictionaryType type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nasa.pds.tools.label.Value
normalize
 

Constructor Detail

Scalar

protected Scalar(String value)
Constructs a Scalar

Parameters:
value -
Method Detail

getValue

public String getValue()
Retrieves the value

Returns:
the value

toString

public String toString()
Overrides:
toString in class Object

isSupportedPDSType

public abstract boolean isSupportedPDSType(Constants.DictionaryType type)

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashcode

public int hashcode()


Copyright © 2005–2013 Planetary Data System. All rights reserved.