gov.noaa.pmel.util
Class SoTValue

java.lang.Object
  extended by gov.noaa.pmel.util.SoTValue
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SoTValue.Double, SoTValue.Float, SoTValue.GeoDate, SoTValue.Integer, SoTValue.Short, SoTValue.Time

public abstract class SoTValue
extends java.lang.Object
implements java.io.Serializable

SoTValue is an abstract class used to wrap either a double or GeoDate. SoT stands for space or time, but being basically lazy I've abbreviated it.

Since:
sgt 2.0
Version:
$Revision$, $Date$
Author:
Donald Denbo
See Also:
Serialized Form

Nested Class Summary
static class SoTValue.Double
          Inner class for SoTRange for type double.
static class SoTValue.Float
          Inner class for SoTRange for type float.
static class SoTValue.GeoDate
          Deprecated. As of sgt 3.0, replaced by SoTValue.Time
static class SoTValue.Integer
          Inner class for SoTRange for type int.
static class SoTValue.Short
          Inner class for SoTRange for type short.
static class SoTValue.Time
          Inner class for SoTRange for type long.
 
Constructor Summary
protected SoTValue()
          This is an abstract class that cannot be instantiated directly.
 
Method Summary
abstract  void add(SoTValue val)
           
abstract  boolean equals(SoTValue val)
           
abstract  GeoDate getGeoDate()
           
abstract  long getLongTime()
           
abstract  java.lang.Object getObjectValue()
           
abstract  boolean isTime()
           
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoTValue

protected SoTValue()
This is an abstract class that cannot be instantiated directly. Type-specific implementation subclasses are available for instantiation and provide a number of formats for storing the information necessary to satisfy the various accessor methods below.

Method Detail

isTime

public abstract boolean isTime()

toString

public abstract java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public abstract boolean equals(SoTValue val)

getObjectValue

public abstract java.lang.Object getObjectValue()

getLongTime

public abstract long getLongTime()

getGeoDate

public abstract GeoDate getGeoDate()

add

public abstract void add(SoTValue val)