ucar.unidata.data.text
Class ProductGroup

java.lang.Object
  extended by ucar.unidata.data.text.ProductGroup

public class ProductGroup
extends Object

Holds a named group of products

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

Constructor Summary
ProductGroup()
          The default ctor
ProductGroup(String name)
          Create a new product group
 
Method Summary
 void addProduct(ProductType product)
          Add a product to the group
 boolean equals(Object o)
          See if this equals another
 List<ProductType> getProductTypes()
          Get the list of products in this group
static void main(String[] args)
          Test this
 String toString()
          Get a String representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductGroup

public ProductGroup()
The default ctor


ProductGroup

public ProductGroup(String name)
Create a new product group

Parameters:
name - the name of the group
Method Detail

equals

public boolean equals(Object o)
See if this equals another

Overrides:
equals in class Object
Parameters:
o - the other
Returns:
true if they are equal

main

public static void main(String[] args)
                 throws Exception
Test this

Parameters:
args - the file
Throws:
Exception - problem

addProduct

public void addProduct(ProductType product)
Add a product to the group

Parameters:
product - the product to add

getProductTypes

public List<ProductType> getProductTypes()
Get the list of products in this group

Returns:
the list of products in this group

toString

public String toString()
Get a String representation

Overrides:
toString in class Object
Returns:
a String representation