}
}
if (new QName(GML.NAMESPACE, "_Geometry").equals(name)) {
if (e1 instanceof Literal) {
Literal literal = (Literal) e1;
if (literal.getValue() instanceof Geometry) {
return literal.getValue();
}
} else if (e2 instanceof Literal) {
Literal literal = (Literal) e2;
if (literal.getValue() instanceof Geometry) {
return literal.getValue();
}
}
}
if (new QName(GML.NAMESPACE, "Box").equals(name) /*filter 1.0*/
|| new QName(GML.NAMESPACE, "Envelope").equals(name) /*filter 1.1*/) {
if (e1 instanceof Literal) {
Literal literal = (Literal) e1;
if (literal.getValue() instanceof Envelope) {
return literal.getValue();
}
} else if (e2 instanceof Literal) {
Literal literal = (Literal) e2;
if (literal.getValue() instanceof Envelope) {
return literal.getValue();
}
}
}
return null;