org.n52.oxf.valueDomains
Class IntegerDiscreteValueDomain
java.lang.Object
org.n52.oxf.valueDomains.IntegerDiscreteValueDomain
- All Implemented Interfaces:
- IDiscreteValueDomain<Integer>, IValueDomain<Integer>
public class IntegerDiscreteValueDomain
- extends Object
- implements IDiscreteValueDomain<Integer>
- Author:
- Arne Broering
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.