*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value)
throws Exception {
GetFeatureWithLockType getFeatureWithLock = wfsfactory
.createGetFeatureWithLockType();
WFSBindingUtils.service(getFeatureWithLock, node);
WFSBindingUtils.version(getFeatureWithLock, node);
WFSBindingUtils.outputFormat(getFeatureWithLock, node, "GML2");
if (node.getAttributeValue("handle") != null) {
getFeatureWithLock.setHandle((String) node.getAttributeValue("handle"));
}
//get the max features
BigInteger maxFeatures = WFSBindingUtils.asBigInteger((Number) node.getAttributeValue(
"maxFeatures"));
if (maxFeatures != null) {
getFeatureWithLock.setMaxFeatures(maxFeatures);
}
//get the lock expiry
BigInteger expiry = WFSBindingUtils.asBigInteger((Number) node.getAttributeValue("expiry"));
if (expiry != null) {
getFeatureWithLock.setExpiry(expiry);
}
//queries
getFeatureWithLock.getQuery().addAll(node.getChildValues(QueryType.class));
return getFeatureWithLock;
}