public class IntegerDiscreteValueDomain extends Object implements IDiscreteValueDomain<Integer>
Modifier and Type | Field and Description |
---|---|
(package private) String |
description
description of the valueDomain
|
(package private) List<Integer> |
possibleValues
List with possible values (if this value domain has discrete values
|
Constructor and Description |
---|
IntegerDiscreteValueDomain(Integer possibleValue) |
IntegerDiscreteValueDomain(Integer[] possibleValues) |
IntegerDiscreteValueDomain(List<Integer> possibleValues) |
Modifier and Type | Method and Description |
---|---|
void |
add(Integer i) |
boolean |
containsValue(Integer n) |
String |
getDomainDescription() |
List<Integer> |
getPossibleValues() |
Integer |
produceValue(String... stringArray) |
String |
toXML() |
List<Integer> possibleValues
String description
public IntegerDiscreteValueDomain(Integer possibleValue)
public IntegerDiscreteValueDomain(List<Integer> possibleValues)
possibleValues
- ArrayList with discrete Integer-Valuespublic IntegerDiscreteValueDomain(Integer[] possibleValues)
possibleValues
- ArrayList with discrete Integer-Valuespublic void add(Integer i)
i
- Integer to be added to this IntegerValueDomain.public List<Integer> getPossibleValues()
getPossibleValues
in interface IDiscreteValueDomain<Integer>
public String getDomainDescription()
getDomainDescription
in interface IValueDomain<Integer>
public boolean containsValue(Integer n)
containsValue
in interface IValueDomain<Integer>
n
- the value to checktrue
,if the value t is part of this value domain.public String toXML()
toXML
in interface IValueDomain<Integer>
public Integer produceValue(String... stringArray)
produceValue
in interface IValueDomain<Integer>
Copyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.