ucar.unidata.data.text
Class Product

java.lang.Object
  extended by ucar.unidata.data.text.Product
All Implemented Interfaces:
Comparable

public class Product
extends Object
implements Comparable

Holds a named product

Version:
$Revision: 1.15 $
Author:
IDV development team

Constructor Summary
Product(String station, String content, Date date)
          Create a product
 
Method Summary
 int compareTo(Object o)
          Compare this to o
 String getContent()
          Get the Content property.
 Date getDate()
          Get the Date property.
 String getStation()
          Get the Station property.
 void setContent(String value)
          Set the Content property.
 void setDate(Date value)
          Set the Date property.
 void setStation(String value)
          Set the Station property.
 String toString()
          Get a string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Product

public Product(String station,
               String content,
               Date date)
Create a product

Parameters:
station - station
content - content
date - the date
Method Detail

compareTo

public int compareTo(Object o)
Compare this to o

Specified by:
compareTo in interface Comparable
Parameters:
o - the object to compare to
Returns:
the comparison

toString

public String toString()
Get a string representation

Overrides:
toString in class Object
Returns:
a string representation

setDate

public void setDate(Date value)
Set the Date property.

Parameters:
value - The new value for Date

getDate

public Date getDate()
Get the Date property.

Returns:
The Date

setContent

public void setContent(String value)
Set the Content property.

Parameters:
value - The new value for Content

getContent

public String getContent()
Get the Content property.

Returns:
The Content

setStation

public void setStation(String value)
Set the Station property.

Parameters:
value - The new value for Station

getStation

public String getStation()
Get the Station property.

Returns:
The Station