org.n52.oxf.valueDomains
Class DoubleDiscreteValueDomain

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

public class DoubleDiscreteValueDomain
extends Object
implements IDiscreteValueDomain<Double>

Author:
Arne Broering

Constructor Summary
DoubleDiscreteValueDomain(Double[] possibleValues)
           
DoubleDiscreteValueDomain(List<Double> possibleValues)
          Constructor with discrete Values
 
Method Summary
 boolean containsValue(Double d)
          tests whether a double value is contained in this valueDomain
 String getDomainDescription()
          gives a description of this ValueDomain
 List<Double> getPossibleValues()
          returns the discrete Values of the DoubleValueDomain
 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

DoubleDiscreteValueDomain

public DoubleDiscreteValueDomain(List<Double> possibleValues)
Constructor with discrete Values

Parameters:
possibleValues - ArrayList with discrete Values

DoubleDiscreteValueDomain

public DoubleDiscreteValueDomain(Double[] possibleValues)
Method Detail

getPossibleValues

public List<Double> getPossibleValues()
returns the discrete Values of the DoubleValueDomain

Specified by:
getPossibleValues in interface IDiscreteValueDomain<Double>
Returns:
ArrayList with possible (discrete) values

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

produceValue

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


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