org.n52.oxf.valueDomains
Class IntegerRangeValueDomain

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

public class IntegerRangeValueDomain
extends Object
implements IRangeValueDomain<Integer>

Author:
Christoph Stasch

Constructor Summary
IntegerRangeValueDomain(int min, int max)
           
 
Method Summary
 boolean containsValue(Integer i)
          test, whether a double value is contained in this valueDomain
 String getDomainDescription()
          gives a description of this ValueDomain
 Integer getMaxValue()
           
 Integer getMinValue()
           
 Integer 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

IntegerRangeValueDomain

public IntegerRangeValueDomain(int min,
                               int max)
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<Integer>
Returns:
String with description

containsValue

public boolean containsValue(Integer i)
test, whether a double value is contained in this valueDomain

Specified by:
containsValue in interface IValueDomain<Integer>
Parameters:
obj - the value which has to be tested (double in this case)
Returns:
true, if value is contained

toXML

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

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

getMaxValue

public Integer getMaxValue()
Specified by:
getMaxValue in interface IRangeValueDomain<Integer>
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 Integer getMinValue()
Specified by:
getMinValue in interface IRangeValueDomain<Integer>
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 Integer produceValue(String... stringArray)
Specified by:
produceValue in interface IValueDomain<Integer>


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