public class TemporalValueDomain extends Object implements IDiscreteValueDomain<ITime>
Modifier and Type | Field and Description |
---|---|
(package private) List<ITime> |
timeList
a List of ITime objects; so either TimePosition or TimePeriod objects.
|
Constructor and Description |
---|
TemporalValueDomain(ITime time) |
TemporalValueDomain(ITime[] possibleValues) |
TemporalValueDomain(List<ITime> timeList) |
Modifier and Type | Method and Description |
---|---|
void |
add(ITime time)
adds an ITime object to the timeList.
|
void |
add(String timeString)
adds an ITime object to the timeList.
|
boolean |
containsValue(ITime time)
proofs whether the overgiven ITime object is contained in this TemporalValueDomain.
|
String |
getDomainDescription() |
List<ITime> |
getPossibleValues() |
boolean |
isEmpty() |
ITime |
produceValue(String... stringArray)
builds from the first element of the stringArray an ITime object.
|
String |
toXML() |
public TemporalValueDomain(ITime time)
public TemporalValueDomain(ITime[] possibleValues)
public void add(ITime time)
time
- the ITime to addpublic void add(String timeString)
timeString
- ISO8601 compliant timeString.public boolean isEmpty()
public List<ITime> getPossibleValues()
getPossibleValues
in interface IDiscreteValueDomain<ITime>
public boolean containsValue(ITime time)
containsValue
in interface IValueDomain<ITime>
time
- the time to checktrue
,if the value t is part of this value domain.public String getDomainDescription()
getDomainDescription
in interface IValueDomain<ITime>
public String toXML()
toXML
in interface IValueDomain<ITime>
public ITime produceValue(String... stringArray)
produceValue
in interface IValueDomain<ITime>
stringArray
- the String[] to create an ITime object from. MUST be ISO8601 compliant.Copyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.