*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value)
throws Exception {
GetLogType result = wfsvFactory.createGetLogType();
result.getDifferenceQuery().addAll(node.getChildValues(DifferenceQueryType.class));
if (node.hasAttribute("resultType")) {
result.setResultType((ResultTypeType) node.getAttributeValue("resultType"));
}
if(node.hasAttribute("version"))
result.setVersion((String) node.getAttributeValue("version"));
else
result.setVersion("1.1.0");
if (node.hasAttribute("outputFormat")) {
result.setOutputFormat((String) node.getAttributeValue("outputFormat"));
} else {
if("1.0.0".equals(result.getVersion()))
result.setOutputFormat("GML2");
else
result.setOutputFormat("text/xml; subtype=gml/3.1.1");
}
if(node.hasAttribute("maxFeatures")) {
result.setMaxFeatures((BigInteger) node.getAttributeValue("maxFeatures"));
}
return result;
}