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)
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:
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