use of org.geotoolkit.ogc.xml.v110.TimeContainsType in project geotoolkit by Geomatys.
the class FilterFactoryImpl method tcontains.
@Override
public TemporalOperator<Object> tcontains(final Expression<Object, ?> expr1, final Expression<Object, ?> expr2) {
Object temporal = null;
PropertyNameType propName = null;
if (expr1 instanceof PropertyNameType) {
propName = (PropertyNameType) expr1;
temporal = expr2;
} else if (expr2 instanceof PropertyNameType) {
propName = (PropertyNameType) expr2;
temporal = expr1;
}
return new TimeContainsType(propName.getXPath(), temporal);
}
Aggregations