|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.metdata.StationTableImpl
ucar.unidata.metdata.NamedStationTable
public class NamedStationTable
Station table that holds a set of NamedStations
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.metdata.StationTableImpl |
|---|
byId_, stations |
| Constructor Summary | |
|---|---|
NamedStationTable()
Default constructor |
|
NamedStationTable(Element root)
Create a NamedStationTable from an XML specification |
|
NamedStationTable(String name)
Create a new NamedStationTable with name |
|
| Method Summary | |
|---|---|
static NamedStationTable |
createStationTable(Element root)
Creates a station table from an XML file with station information, such as profilerstns.xml |
static NamedStationTable |
createStationTable(String xml)
Creates a station table from an XML file with station information, such as profilerstns.xml |
void |
createStationTableFromCsv(String csv)
Create a station table from a csv string |
static NamedStationTable |
createStationTableFromFile(String filename)
Create a station table from a file |
void |
createStationTableFromGempak(String tbl)
Create a station table from a Gempak table |
void |
createStationTableFromKmlFile(String filename)
|
static List |
createStationTables(XmlResourceCollection xrc)
Create a list of NamedStationTables from a set of resources |
String |
getCategory()
Get the Category property. |
String |
getDescription()
Get the Description property. |
String |
getFullName()
Get the full name of the table. |
String |
getId()
Get the Id property. |
protected Map |
getMap()
Override the base class method to lazily instantiate the stations from the XML root element if we have not done so already. |
String |
getName()
Get the name of the table |
static String |
getStationXml(String name,
String category,
List stations)
Get the station xml |
String |
getType()
Get the Type property. |
boolean |
isEmpty()
Is the table empty? |
static void |
main(String[] args)
Test a particular file |
static List |
makeMenuItems(List locations,
ObjectListener listener)
Make a set of menu items from the list of locations |
void |
setCategory(String value)
Set the Category property. |
void |
setDescription(String value)
Set the Description property. |
void |
setId(String value)
Set the Id property. |
void |
setName(String name)
Set the name of the station table |
void |
setType(String value)
Set the Type property. |
String |
toString()
Return table name and size |
static List |
xxxxmakeMenuItems(List stations,
ObjectListener listener)
Make stations from the root element. |
| Methods inherited from class ucar.unidata.metdata.StationTableImpl |
|---|
add, add, get, keySet, remove, remove, size, values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NamedStationTable(Element root)
root - root element for XMLpublic NamedStationTable()
public NamedStationTable(String name)
name
name - name of the table| Method Detail |
|---|
public void setType(String value)
value - The new value for Typepublic String getType()
public void setName(String name)
name - new namepublic String getName()
public String getFullName()
public void setCategory(String value)
value - The new value for Categorypublic String getCategory()
public static String getStationXml(String name,
String category,
List stations)
name - name of the documentcategory - the categorystations - the list of stations
public static List createStationTables(XmlResourceCollection xrc)
xrc - XML resources
public void createStationTableFromKmlFile(String filename)
throws Exception
Exception
public void createStationTableFromCsv(String csv)
throws Exception
csv - The actual csv text
Exception - problem creating table from file
public void createStationTableFromGempak(String tbl)
throws Exception
tbl - The actual Gempak table as text
Exception - problem creating table from file
public static NamedStationTable createStationTableFromFile(String filename)
throws Exception
filename - filename
Exception - problem creating table from file
public static NamedStationTable createStationTable(String xml)
throws Exception
xml - xml
Exception - problem creating tablepublic static NamedStationTable createStationTable(Element root)
root - root XML element defining table
protected Map getMap()
getMap in class StationTableImpl
public static List xxxxmakeMenuItems(List stations,
ObjectListener listener)
stations - stationslistener - listener for changes
public static List makeMenuItems(List locations,
ObjectListener listener)
locations - list of locationslistener - listener on the objects
public boolean isEmpty()
public String toString()
toString in class Objectpublic void setId(String value)
value - The new value for Idpublic String getId()
public void setDescription(String value)
value - The new value for Descriptionpublic String getDescription()
public static void main(String[] args)
throws Exception
args - _more_
Exception - _more_
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||