ucar.unidata.data.gis
Class KmlInfo

java.lang.Object
  extended by ucar.unidata.data.gis.KmlInfo
Direct Known Subclasses:
KmlGroundOverlay, KmlPoints, KmlPolygons

public abstract class KmlInfo
extends Object

Class KmlInfo holds information about a kml node or group of nodes

Version:
$Revision: 1.11 $
Author:
IDV Development Team

Field Summary
static String TAG_ADDRESS
          Address tag
static String TAG_COORDINATES
          kml tag
static String TAG_DESCRIPTION
          xml tags
static String TAG_LINESTRING
          xml tag
static String TAG_NAME
          kml tag
 
Constructor Summary
KmlInfo()
          ctor
KmlInfo(Element node, String displayCategory, String dataCategory)
          ctor
KmlInfo(String name, String displayCategory, String dataCategory)
          name
 
Method Summary
 List getCategories()
          get the categories
abstract  Data getData(KmlDataSource dataSource, Object loadId)
          Abstract method that returns the visad data
 String getName()
          Get the Name property.
 void setName(String value)
          Set the Name property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_LINESTRING

public static final String TAG_LINESTRING
xml tag

See Also:
Constant Field Values

TAG_ADDRESS

public static final String TAG_ADDRESS
Address tag

See Also:
Constant Field Values

TAG_DESCRIPTION

public static final String TAG_DESCRIPTION
xml tags

See Also:
Constant Field Values

TAG_COORDINATES

public static final String TAG_COORDINATES
kml tag

See Also:
Constant Field Values

TAG_NAME

public static final String TAG_NAME
kml tag

See Also:
Constant Field Values
Constructor Detail

KmlInfo

public KmlInfo()
ctor


KmlInfo

public KmlInfo(Element node,
               String displayCategory,
               String dataCategory)
ctor

Parameters:
node - kml node
displayCategory - category
dataCategory - data category

KmlInfo

public KmlInfo(String name,
               String displayCategory,
               String dataCategory)
name

Parameters:
name - name
displayCategory - category
dataCategory - data category
Method Detail

getCategories

public List getCategories()
get the categories

Returns:
categories

getData

public abstract Data getData(KmlDataSource dataSource,
                             Object loadId)
                      throws VisADException,
                             RemoteException
Abstract method that returns the visad data

Parameters:
dataSource - the source
loadId - to stop load
Returns:
visad data this kml info represents
Throws:
RemoteException - On badness
VisADException - On badness

setName

public void setName(String value)
Set the Name property.

Parameters:
value - The new value for Name

getName

public String getName()
Get the Name property.

Returns:
The Name