.toArray(new FeatureTypeConstraint[featureTypeConstraints
.size()]);
}
protected FeatureTypeConstraint parseFeatureTypeConstraint(Node root) {
FeatureTypeConstraint ftc = new FeatureTypeConstraintImpl();
NodeList children = root.getChildNodes();
final int length = children.getLength();
for (int i = 0; i < length; i++) {
Node child = children.item(i);
if ((child == null) || (child.getNodeType() != Node.ELEMENT_NODE)) {
continue;
}
String childName = child.getLocalName();
if (childName.equalsIgnoreCase("FeatureTypeName")) {
ftc.setFeatureTypeName(getFirstChildValue(child));
} else if (childName.equalsIgnoreCase("Filter")) {
ftc.setFilter(parseFilter(child));
}
}
ftc.setExtents(new Extent[0]);
if (ftc.getFeatureTypeName() == null)
return null;
else
return ftc;
}