org.geotools.data.wms.xml
Class Extent

Object
  extended by Extent

public class Extent
extends Object

Property class for holding and handling of property values declared in Extent-element of a layer As of WMS Spec 1.3.0 Extent is no longer a valid child element to the element layer. This java representation is maintained to be able to support both WMS Spec 1.1.1 and 1.3.0 http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd

Author:
Per Engstrom, Curalia AB, pereng@gmail.com

Field Summary
protected  boolean current
          Only valid for Time extents
protected  String defaultValue
           
protected  boolean multipleValues
           
protected  String name
           
protected  boolean nearestValue
           
protected  String value
          A CDATA section in the XML; this is actually a structured string.
 
Constructor Summary
Extent(String name, String defaultValue, Boolean multipleValues, Boolean nearestValue, String value)
           
 
Method Summary
 String getDefaultValue()
           
 String getName()
           
 boolean getNearestValue()
           
 String getValue()
           
 boolean isCurrent()
           
 boolean isEmpty()
           
 boolean isMultipleValues()
           
 void setCurrent(boolean current)
           
 void setDefaultValue(String defaultValue)
           
 void setMultipleValues(boolean multipleValues)
           
 void setName(String name)
           
 void setNearestValue(boolean nearestValue)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

defaultValue

protected String defaultValue

nearestValue

protected boolean nearestValue

multipleValues

protected boolean multipleValues

current

protected boolean current
Only valid for Time extents


value

protected String value
A CDATA section in the XML; this is actually a structured string.

Constructor Detail

Extent

public Extent(String name,
              String defaultValue,
              Boolean multipleValues,
              Boolean nearestValue,
              String value)
Method Detail

isCurrent

public boolean isCurrent()

setCurrent

public void setCurrent(boolean current)

getName

public String getName()

setName

public void setName(String name)

getDefaultValue

public String getDefaultValue()

setDefaultValue

public void setDefaultValue(String defaultValue)

getNearestValue

public boolean getNearestValue()

setNearestValue

public void setNearestValue(boolean nearestValue)

getValue

public String getValue()

setValue

public void setValue(String value)

isMultipleValues

public boolean isMultipleValues()

setMultipleValues

public void setMultipleValues(boolean multipleValues)

toString

public String toString()
Overrides:
toString in class Object

isEmpty

public boolean isEmpty()


Copyright © 1996-2010 Geotools. All Rights Reserved.