ucar.unidata.util
Class WmsUtil

java.lang.Object
  extended by ucar.unidata.util.WmsUtil

public class WmsUtil
extends Object

Version:
$Revision: 1.53 $Date: 2007/07/09 22:59:58 $
Author:
IDV development team

Field Summary
static String ATTR_FIXEDHEIGHT
          xml attribute name
static String ATTR_FIXEDWIDTH
          xml attribute name
static String ATTR_MAXX
          xml attribute name
static String ATTR_MAXY
          xml attribute name
static String ATTR_MINX
          xml attribute name
static String ATTR_MINY
          xml attribute name
static String ATTR_NAME
          xml attribute name
static String ATTR_NOSUBSETS
          xml attribute name
static String ATTR_OPAQUE
          xml attribute name
static String ATTR_VERSION
          xml attribute name
static String TAG_ABSTRACT
          XML tag name for the "Abstract" tag
static String TAG_BOUNDINGBOX
          xml tag name
static String TAG_CAPABILITY
          XML tag name for the "Capability" tag
static String TAG_CRS
          xml tag name
static String TAG_DIMENSION
          XML tag name for the "Dimension" tag
static String TAG_LATLONBOUNDINGBOX
          xml tag name
static String TAG_LAYER
          XML tag name for the "Layer" tag
static String TAG_NAME
          _more_
static String TAG_SRS
          xml tag name
static String TAG_STYLE
          XML tag name for the "Style" tag
static String TAG_TITLE
          XML tag name for the "Title" tag
static String TAG_WMS1
          This is one of the root document xml tags that I have seen for a WMS cababilities document
static String TAG_WMS2
          This is the ther root document xml tags that I have seen for a WMS cababilities document
static String VALUE_TIME
          xml attribute value
 
Constructor Summary
WmsUtil()
           
 
Method Summary
static Element findBbox(Element node)
          Find the bbox element
static String getLabel(Element node)
          _more_
static boolean isLoadable(Element node)
          The given node is an Xml node that the user has clicked on.
static List<WmsSelection> processNode(Element root, List selectedNodes, String[] message, boolean mergeLayers)
          _more_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_ABSTRACT

public static final String TAG_ABSTRACT
XML tag name for the "Abstract" tag

See Also:
Constant Field Values

TAG_DIMENSION

public static final String TAG_DIMENSION
XML tag name for the "Dimension" tag

See Also:
Constant Field Values

TAG_LAYER

public static final String TAG_LAYER
XML tag name for the "Layer" tag

See Also:
Constant Field Values

TAG_LATLONBOUNDINGBOX

public static final String TAG_LATLONBOUNDINGBOX
xml tag name

See Also:
Constant Field Values

TAG_BOUNDINGBOX

public static final String TAG_BOUNDINGBOX
xml tag name

See Also:
Constant Field Values

TAG_SRS

public static final String TAG_SRS
xml tag name

See Also:
Constant Field Values

TAG_NAME

public static final String TAG_NAME
_more_

See Also:
Constant Field Values

TAG_CRS

public static final String TAG_CRS
xml tag name

See Also:
Constant Field Values

TAG_TITLE

public static final String TAG_TITLE
XML tag name for the "Title" tag

See Also:
Constant Field Values

TAG_STYLE

public static final String TAG_STYLE
XML tag name for the "Style" tag

See Also:
Constant Field Values

TAG_CAPABILITY

public static final String TAG_CAPABILITY
XML tag name for the "Capability" tag

See Also:
Constant Field Values

TAG_WMS1

public static final String TAG_WMS1
This is one of the root document xml tags that I have seen for a WMS cababilities document

See Also:
Constant Field Values

TAG_WMS2

public static final String TAG_WMS2
This is the ther root document xml tags that I have seen for a WMS cababilities document

See Also:
Constant Field Values

ATTR_FIXEDWIDTH

public static final String ATTR_FIXEDWIDTH
xml attribute name

See Also:
Constant Field Values

ATTR_OPAQUE

public static final String ATTR_OPAQUE
xml attribute name

See Also:
Constant Field Values

ATTR_VERSION

public static final String ATTR_VERSION
xml attribute name

See Also:
Constant Field Values

ATTR_FIXEDHEIGHT

public static final String ATTR_FIXEDHEIGHT
xml attribute name

See Also:
Constant Field Values

ATTR_NAME

public static final String ATTR_NAME
xml attribute name

See Also:
Constant Field Values

ATTR_NOSUBSETS

public static final String ATTR_NOSUBSETS
xml attribute name

See Also:
Constant Field Values

ATTR_MINX

public static final String ATTR_MINX
xml attribute name

See Also:
Constant Field Values

ATTR_MAXX

public static final String ATTR_MAXX
xml attribute name

See Also:
Constant Field Values

ATTR_MINY

public static final String ATTR_MINY
xml attribute name

See Also:
Constant Field Values

ATTR_MAXY

public static final String ATTR_MAXY
xml attribute name

See Also:
Constant Field Values

VALUE_TIME

public static final String VALUE_TIME
xml attribute value

See Also:
Constant Field Values
Constructor Detail

WmsUtil

public WmsUtil()
Method Detail

processNode

public static List<WmsSelection> processNode(Element root,
                                             List selectedNodes,
                                             String[] message,
                                             boolean mergeLayers)
_more_

Parameters:
root - _more_
selectedNodes - _more_
message - _more_
mergeLayers - _more_
Returns:
_more_

getLabel

public static String getLabel(Element node)
_more_

Parameters:
node - _more_
Returns:
_more_

isLoadable

public static boolean isLoadable(Element node)
The given node is an Xml node that the user has clicked on. This method determines if the node is loadable, i.e., if it is a layer or a style node that also has a loadable=1 attribute.

Parameters:
node - The node to check
Returns:
Is the node loadable

findBbox

public static Element findBbox(Element node)
Find the bbox element

Parameters:
node - xml node
Returns:
bbox node