public class TemporalElementTests extends BaseFixture
NS_MAP, testSubject| Constructor and Description |
|---|
TemporalElementTests() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkIndefiniteInterval(Element timeSpan,
org.opengis.cite.validation.ValidationErrorHandler errHandler)
An error is produced if any kml:TimeSpan elements does not have at least
one of the required children, kml:begin or kml:end.
|
(package private) void |
checkInterval(Element timeSpan,
org.opengis.cite.validation.ValidationErrorHandler errHandler)
An error is produced if any kml:TimeSpan elements, which specify both a
kml:begin and kml:end, specify an invalid interval (kml:begin is before
kml:end).
|
(package private) org.joda.time.DateTime |
parseDateTime(String str)
Parses a string representing an instant in time as an ISO 8601 DateTime
object.
|
void |
verifyTimeSpan()
[
Test] Verifies that a TimeSpan element satisfies all of the
following constraints:
it includes at least one child element (kml:begin or kml:end);
if it is a definite interval (both kml:begin and kml:end are
present), then the begin value is earlier than the end value. |
void |
verifyTimeStamp()
[
Test] Verifies that a kml:TimeStamp element has a child kml:when
element. |
obtainTestSubject, setTestSubject, verifyElementNotEmptypublic void verifyTimeSpan()
Test] Verifies that a TimeSpan element satisfies all of the
following constraints:
public void verifyTimeStamp()
Test] Verifies that a kml:TimeStamp element has a child kml:when
element.void checkIndefiniteInterval(Element timeSpan, org.opengis.cite.validation.ValidationErrorHandler errHandler)
timeSpan - A kml:TimeSpan element.errHandler - The error handler that receives any errors that were detected.void checkInterval(Element timeSpan, org.opengis.cite.validation.ValidationErrorHandler errHandler)
timeSpan - A kml:TimeSpan element.errHandler - The error handler that receives any errors that were detected.org.joda.time.DateTime parseDateTime(String str)
str - The string to parse.Copyright © 2021 Open Geospatial Consortium. All rights reserved.