org.n52.oxf.valueDomains
Class DoubleRangeValueDomain

java.lang.Object
  extended by org.n52.oxf.valueDomains.DoubleRangeValueDomain
All Implemented Interfaces:
IRangeValueDomain<Double>, IValueDomain<Double>

public class DoubleRangeValueDomain
extends Object
implements IRangeValueDomain<Double>

Author:
Christoph Stasch

Constructor Summary
DoubleRangeValueDomain(double min, double max)
          Constructor with min and max value
 
Method Summary
 boolean containsValue(Double d)
          tests whether a double value is contained in this valueDomain
 String getDomainDescription()
          gives a description of this ValueDomain
 Double getMaxValue()
           
 Double getMinValue()
           
 Double produceValue(String... stringArray)
           
 String toXML()
          creates an XML-String of the ValueDomain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleRangeValueDomain

public DoubleRangeValueDomain(double min,
                              double max)
Constructor with min and max value

Parameters:
min - minvalue of the value range
max - maxvalue of the value range
Method Detail

getDomainDescription

public String getDomainDescription()
gives a description of this ValueDomain

Specified by:
getDomainDescription in interface IValueDomain<Double>
Returns:
String with description

containsValue

public boolean containsValue(Double d)
tests whether a double value is contained in this valueDomain

Specified by:
containsValue in interface IValueDomain<Double>
Parameters:
d - the value which has to be tested
Returns:
true, if value is contained

toXML

public String toXML()
creates an XML-String of the ValueDomain

Specified by:
toXML in interface IValueDomain<Double>
Returns:
XML-String of this ValueDomain

getMaxValue

public Double getMaxValue()
Specified by:
getMaxValue in interface IRangeValueDomain<Double>
Returns:
the maximum value of this RangeValueDomain. Of course the return type Object can be replaced by a specialized type. (e.g. BoundingBox: public double[] getMaxValue() )

getMinValue

public Double getMinValue()
Specified by:
getMinValue in interface IRangeValueDomain<Double>
Returns:
the minimum value of this RangeValueDomain. Of course the return type Object can be replaced by a specialized type. (e.g. BoundingBox: public double[] getMinValue() )

produceValue

public Double produceValue(String... stringArray)
Specified by:
produceValue in interface IValueDomain<Double>


Copyright © 2012-2013 52north.org. All Rights Reserved.