dods.clients.importwizard.GCMD
Class Dif

java.lang.Object
  extended by dods.clients.importwizard.GCMD.Dif

public class Dif
extends Object

A Dif represents an xml Dif element, which in turn holds the information about a dataset in the GCMD database. At this point in time, it only holds information for a few of the fields in the dif, but more can be added as they become needed.

Author:
rhonhart

Nested Class Summary
 class Dif.DataResolution
           
 class Dif.Parameters
           
 class Dif.Personnel
           
 class Dif.SpatialCoverage
           
 class Dif.TemporalCoverage
           
 
Constructor Summary
Dif()
           
Dif(String id)
          Create a Dif with the unique ID id
 
Method Summary
 void addContactInfo(String role, String name, String email, String phone, String fax, String address)
          Add the contact information from a tag.
 void addParameters(String cat, String top, String ter, String var)
          Add a object.
 void addRelatedURL(String url, String contentType)
          Add the information from a tag.
 String getAddress(int i)
          returns the address for a Personnel
 String getCategory(int i)
          returns the category for a Parameter set
 Dif.DataResolution getDataResolution()
          returns the data resolution
 DodsURL getDodsURL()
          Go through the internal vector of related URLs and pick a URL to return as the DODS URL.
 String getEasternmost()
          returns the easternmost longitude
 String getEmail(int i)
          returns the email for a Personnel
 String getFax(int i)
          returns the fax for a Personnel
 String getID()
          returns the ID of the Dif
 String getLatResolution()
          returns the latitude resolution
 String getLongResolution()
          returns the longitude resolution
 String getName(int i)
          returns the name for a Personnel
 String getNorthernmost()
          returns the northernmost latitude
 Vector getParameters()
          returns the parameters for a Dif
 Vector getPersonnels()
          returns the contact information for a Dif
 String getPhone(int i)
          returns the phone for a Personnel
 String getRole(int i)
          returns the role for a Personnel
 String getSouthernmost()
          returns the southernmost latitude
 Dif.SpatialCoverage getSpatialCoverage()
          returns the spatial coverage information for a Dif
 String getStartDate()
          returns the start date
 String getStopDate()
          returns the stop date
 String getSummary()
          returns the summary information for a Dif
 Dif.TemporalCoverage getTemporalCoverage()
          returns the temporal coverage for a Dif
 String getTemporalResolution()
          returns the temporal resolution
 String getTerm(int i)
          returns the term for a Parameter set
 String getTitle()
          returns the title of the Dif
 String getTopic(int i)
          returns the topic for a Parameter set
 String getVariable(int i)
          returns the variable for a Parameter set
 String getWesternmost()
          returns the westernmost longitude
 void setDataResolution(String latRes, String longRes, String tempRes)
          Add the data resolution information from a tag.
 void setID(String id)
           
 void setSpatialCoverage(String southernmost, String northernmost, String westernmost, String easternmost)
          Add the spatial coverage information from a tag.
 void setSummary(String text)
          Set the summary information for the Dif.
 void setTemporalCoverage(String startDate, String stopDate)
          Add the temporal coverage information from a tag.
 void setTitle(String title)
          Set the title of the Dif
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dif

public Dif()

Dif

public Dif(String id)
Create a Dif with the unique ID id

Parameters:
id - The Entry_ID of the Dif
Method Detail

setID

public void setID(String id)

setTitle

public void setTitle(String title)
Set the title of the Dif

Parameters:
title - The Entry_Title of the Dif

setSummary

public void setSummary(String text)
Set the summary information for the Dif.

Parameters:
text - The information from the tag of the Dif

addContactInfo

public void addContactInfo(String role,
                           String name,
                           String email,
                           String phone,
                           String fax,
                           String address)
Add the contact information from a tag.

Parameters:
role -
name -
email -
phone -
fax -
address -

setSpatialCoverage

public void setSpatialCoverage(String southernmost,
                               String northernmost,
                               String westernmost,
                               String easternmost)
Add the spatial coverage information from a tag.

Parameters:
southernmost -
northernmost -
westernmost -
easternmost -

setTemporalCoverage

public void setTemporalCoverage(String startDate,
                                String stopDate)
Add the temporal coverage information from a tag.

Parameters:
startDate -
stopDate -

setDataResolution

public void setDataResolution(String latRes,
                              String longRes,
                              String tempRes)
Add the data resolution information from a tag.

Parameters:
latResolution -
longResolution -
temporalResolution -

addRelatedURL

public void addRelatedURL(String url,
                          String contentType)
Add the information from a tag.

Parameters:
url - The URL
contentType - The type of URL, usually from the tag.

addParameters

public void addParameters(String cat,
                          String top,
                          String ter,
                          String var)
Add a object.

Parameters:
cat - The category
top - The topic
ter - The term
var - The variable

getID

public String getID()
returns the ID of the Dif

Returns:
the ID of the Dif

getTitle

public String getTitle()
returns the title of the Dif

Returns:
the title of the Dif

getDodsURL

public DodsURL getDodsURL()
Go through the internal vector of related URLs and pick a URL to return as the DODS URL.

Returns:
the Dods URL of the dataset

getSummary

public String getSummary()
returns the summary information for a Dif

Returns:
the summary information for a Dif

getPersonnels

public Vector getPersonnels()
returns the contact information for a Dif

Returns:
the contact information for a Dif

getRole

public String getRole(int i)
returns the role for a Personnel

Returns:
the role for a Personnel

getName

public String getName(int i)
returns the name for a Personnel

Returns:
the name for a Personnel

getEmail

public String getEmail(int i)
returns the email for a Personnel

Returns:
the email for a Personnel

getPhone

public String getPhone(int i)
returns the phone for a Personnel

Returns:
the phone for a Personnel

getFax

public String getFax(int i)
returns the fax for a Personnel

Returns:
the fax for a Personnel

getAddress

public String getAddress(int i)
returns the address for a Personnel

Returns:
the address for a Personnel

getSpatialCoverage

public Dif.SpatialCoverage getSpatialCoverage()
returns the spatial coverage information for a Dif

Returns:
the spatial coverage information for a Dif

getSouthernmost

public String getSouthernmost()
returns the southernmost latitude

Returns:
the southernmost latitude

getNorthernmost

public String getNorthernmost()
returns the northernmost latitude

Returns:
the northernmost latitude

getWesternmost

public String getWesternmost()
returns the westernmost longitude

Returns:
the westernmost longitude

getEasternmost

public String getEasternmost()
returns the easternmost longitude

Returns:
the easternmost longitude

getParameters

public Vector getParameters()
returns the parameters for a Dif

Returns:
the parameters for a Dif

getCategory

public String getCategory(int i)
returns the category for a Parameter set

Returns:
the category for a Parameter set

getTopic

public String getTopic(int i)
returns the topic for a Parameter set

Returns:
the topic for a Parameter set

getTerm

public String getTerm(int i)
returns the term for a Parameter set

Returns:
the term for a Parameter set

getVariable

public String getVariable(int i)
returns the variable for a Parameter set

Returns:
the variable for a Parameter set

getTemporalCoverage

public Dif.TemporalCoverage getTemporalCoverage()
returns the temporal coverage for a Dif

Returns:
the temporal coverage for a Dif

getStartDate

public String getStartDate()
returns the start date

Returns:
the start date

getStopDate

public String getStopDate()
returns the stop date

Returns:
the stop date

getDataResolution

public Dif.DataResolution getDataResolution()
returns the data resolution

Returns:
the data resolution

getLatResolution

public String getLatResolution()
returns the latitude resolution

Returns:
the latitude resolution

getLongResolution

public String getLongResolution()
returns the longitude resolution

Returns:
the longitude resolution

getTemporalResolution

public String getTemporalResolution()
returns the temporal resolution

Returns:
the temporal resolution

toString

public String toString()
Overrides:
toString in class Object