|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdods.clients.importwizard.GCMD.Dif
public class Dif
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.
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 |
void |
addParameters(String cat,
String top,
String ter,
String var)
Add a |
void |
addRelatedURL(String url,
String contentType)
Add the information from a |
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 |
void |
setID(String id)
|
void |
setSpatialCoverage(String southernmost,
String northernmost,
String westernmost,
String easternmost)
Add the spatial coverage information from a |
void |
setSummary(String text)
Set the summary information for the Dif. |
void |
setTemporalCoverage(String startDate,
String stopDate)
Add the temporal coverage information from a |
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 |
---|
public Dif()
public Dif(String id)
Dif
with the unique ID id
id
- The Entry_ID of the DifMethod Detail |
---|
public void setID(String id)
public void setTitle(String title)
title
- The Entry_Title of the Difpublic void setSummary(String text)
text
- The information from the public void addContactInfo(String role, String name, String email, String phone, String fax, String address)
role
- name
- email
- phone
- fax
- address
- public void setSpatialCoverage(String southernmost, String northernmost, String westernmost, String easternmost)
southernmost
- northernmost
- westernmost
- easternmost
- public void setTemporalCoverage(String startDate, String stopDate)
startDate
- stopDate
- public void setDataResolution(String latRes, String longRes, String tempRes)
latResolution
- longResolution
- temporalResolution
- public void addRelatedURL(String url, String contentType)
url
- The URLcontentType
- The type of URL, usually from the public void addParameters(String cat, String top, String ter, String var)
cat
- The categorytop
- The topicter
- The termvar
- The variablepublic String getID()
public String getTitle()
public DodsURL getDodsURL()
public String getSummary()
public Vector getPersonnels()
public String getRole(int i)
public String getName(int i)
public String getEmail(int i)
public String getPhone(int i)
public String getFax(int i)
public String getAddress(int i)
public Dif.SpatialCoverage getSpatialCoverage()
public String getSouthernmost()
public String getNorthernmost()
public String getWesternmost()
public String getEasternmost()
public Vector getParameters()
public String getCategory(int i)
public String getTopic(int i)
public String getTerm(int i)
public String getVariable(int i)
public Dif.TemporalCoverage getTemporalCoverage()
public String getStartDate()
public String getStopDate()
public Dif.DataResolution getDataResolution()
public String getLatResolution()
public String getLongResolution()
public String getTemporalResolution()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |