use of net.opengis.fes.x20.TEqualsDocument in project arctic-sea by 52North.
the class FesEncoderv20 method encodeTemporalFilterEquals.
private XmlObject encodeTemporalFilterEquals(TemporalFilter temporalFilter) throws EncodingException {
final TEqualsDocument equalsDoc = TEqualsDocument.Factory.newInstance(getXmlOptions());
final BinaryTemporalOpType equals = equalsDoc.addNewTEquals();
if (temporalFilter.getTime() instanceof TimeInstant) {
equals.set(encodeObjectToXml(GmlConstants.NS_GML_32, temporalFilter.getTime(), EncodingContext.of(XmlBeansEncodingFlags.DOCUMENT)));
} else {
throw new EncodingException("The temporal filter value is not a TimeInstant!");
}
checkAndAddValueReference(equals, temporalFilter);
return equalsDoc;
}
Aggregations