org.n52.oxf.valueDomains
Class IntegerDiscreteValueDomain

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

public class IntegerDiscreteValueDomain
extends Object
implements IDiscreteValueDomain<Integer>

Author:
Arne Broering

Constructor Summary
IntegerDiscreteValueDomain(Integer possibleValue)
           
IntegerDiscreteValueDomain(Integer[] possibleValues)
           
IntegerDiscreteValueDomain(List<Integer> possibleValues)
           
 
Method Summary
 void add(Integer i)
           
 boolean containsValue(Integer n)
          test, whether a Integer-value is contained in this valueDomain
 String getDomainDescription()
          gives a description of this ValueDomain
 List<Integer> getPossibleValues()
           
 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

IntegerDiscreteValueDomain

public IntegerDiscreteValueDomain(Integer possibleValue)

IntegerDiscreteValueDomain

public IntegerDiscreteValueDomain(List<Integer> possibleValues)
Parameters:
possibleValues - ArrayList with discrete Integer-Values

IntegerDiscreteValueDomain

public IntegerDiscreteValueDomain(Integer[] possibleValues)
Parameters:
possibleValues - ArrayList with discrete Integer-Values
Method Detail

add

public void add(Integer i)
Parameters:
i - Integer to be added to this IntegerValueDomain.

getPossibleValues

public List<Integer> getPossibleValues()
Specified by:
getPossibleValues in interface IDiscreteValueDomain<Integer>
Returns:
ArrayList with possible (discrete) Integer-values

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 n)
test, whether a Integer-value is contained in this valueDomain

Specified by:
containsValue in interface IValueDomain<Integer>
Parameters:
n - the value which has to be tested
Returns:
true, if n 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

produceValue

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


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