*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value)
throws Exception {
LockType lock = wfsfactory.createLockType();
//<xsd:element maxOccurs="1" minOccurs="0" ref="ogc:Filter"/>
if (node.hasChild(Filter.class)) {
lock.setFilter((Filter) node.getChildValue(Filter.class));
}
//<xsd:attribute name="handle" type="xsd:string" use="optional"/>
if (node.hasAttribute("handle")) {
lock.setHandle((String) node.getAttributeValue("handle"));
}
//<xsd:attribute name="typeName" type="xsd:QName" use="required"/>
lock.setTypeName((QName) node.getAttributeValue("typeName"));
return lock;
}