use of org.geotoolkit.ogc.xml.v100.PropertyNameType in project geotoolkit by Geomatys.
the class FilterFactoryImpl method begins.
@Override
public TemporalOperator<Object> begins(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 TimeBeginsType(propName.getXPath(), temporal);
}
use of org.geotoolkit.ogc.xml.v100.PropertyNameType in project geotoolkit by Geomatys.
the class FilterFactoryImpl method anyInteracts.
@Override
public TemporalOperator<Object> anyInteracts(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 TimeAnyInteractsType(propName.getXPath(), temporal);
}
use of org.geotoolkit.ogc.xml.v100.PropertyNameType in project geotoolkit by Geomatys.
the class FilterFactoryImpl method less.
@Override
public BinaryComparisonOperator<Object> less(final Expression<Object, ?> expr1, final Expression<Object, ?> expr2, final boolean matchCase, final MatchAction action) {
LiteralType lit = null;
PropertyNameType propName = null;
if (expr1 instanceof PropertyNameType) {
propName = (PropertyNameType) expr1;
} else if (expr2 instanceof PropertyNameType) {
propName = (PropertyNameType) expr2;
}
if (expr1 instanceof LiteralType) {
lit = (LiteralType) expr1;
} else if (expr2 instanceof LiteralType) {
lit = (LiteralType) expr2;
}
return new PropertyIsLessThanType(lit, propName, matchCase);
}
use of org.geotoolkit.ogc.xml.v100.PropertyNameType in project geotoolkit by Geomatys.
the class FilterFactoryImpl method lessOrEqual.
@Override
public BinaryComparisonOperator<Object> lessOrEqual(final Expression<Object, ?> expr1, final Expression<Object, ?> expr2) {
LiteralType lit = null;
PropertyNameType propName = null;
if (expr1 instanceof PropertyNameType) {
propName = (PropertyNameType) expr1;
} else if (expr2 instanceof PropertyNameType) {
propName = (PropertyNameType) expr2;
}
if (expr1 instanceof LiteralType) {
lit = (LiteralType) expr1;
} else if (expr2 instanceof LiteralType) {
lit = (LiteralType) expr2;
}
return new PropertyIsLessThanOrEqualToType(lit, propName, null);
}
use of org.geotoolkit.ogc.xml.v100.PropertyNameType in project geotoolkit by Geomatys.
the class FilterFactoryImpl method ends.
@Override
public TemporalOperator<Object> ends(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 TimeEndsType(propName.getXPath(), temporal);
}
Aggregations