highsource / highsource/ogc-schemas

XJC generated GetObservationType.TemporalFilter Java API is incorrect

Open
#199 1 comment 0 reactions 1 assignee Claimed by @highsource View on GitHub
bug
Dominant language
JavaScript
Stars
84
Forks
49
PR merge metrics
No merged PRs in 30d

Description

The xjc generated Java interface for SOS GetObservation accepts arguments of type:

**“JAXBElement< TemporalOpsType >“**

It needs to instead accepts arguments of type:

**“JAXBElement< ? extends TemporalOpsType >”**

Consider the following query:

```xml



phenomenonTime

2010-06-25T00:00:00.000Z
2010-08-02T00:00:00.000Z


```

The current implementation unmarshalls this into the object model, and is able to remarshall it back into an XML document. However, it is not possible to create create the above query through the XJC generated API, as attempting to create a temporal filter with a 'duration' type BinaryTemporalObject results in a compilation error. The error received is

> The method setTemporalOps(JAXBElement) in the type GetObservationType.TemporalFilter is not applicable for the arguments (JAXBElement)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.