package org.geotools.wms.v1_1_1.bindings;


import java.util.HashMap;
import java.util.Map;

import javax.xml.namespace.QName;

import org.geotools.xml.AbstractComplexBinding;
import org.geotools.xml.ElementInstance;
import org.geotools.xml.Node;

/**
 * Binding object for the type :_Capability.
 *
 * <p>
 *	<pre>
 *	 <code>
 *  &lt;xs:complexType name="_Capability"&gt;
 *      &lt;xs:sequence&gt;
 *          &lt;xs:element ref="Request"/&gt;
 *          &lt;xs:element ref="Exception"/&gt;
 *          &lt;xs:element minOccurs="0" ref="UserDefinedSymbolization"/&gt;
 *          &lt;xs:element minOccurs="0" ref="Layer"/&gt;
 *      &lt;/xs:sequence&gt;
 *  &lt;/xs:complexType&gt; 
 *		
 *	  </code>
 *	 </pre>
 * </p>
 *
 * @generated
 */
public class _CapabilityBinding extends AbstractComplexBinding {

	/**
	 * @generated
	 */
	public QName getTarget() {
		return WMSV1_1_1._Capability;
	}
	
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 *	
	 * @generated modifiable
	 */	
	public Class getType() {
		return Map.class;
	}
	
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 *	
	 * @generated modifiable
	 */	
	public Object parse(ElementInstance instance, Node node, Object value) 
		throws Exception {
		HashMap ret = new HashMap();
		ret.put("Request", node.getChildValue("Request"));
		ret.put("Exception", node.getChildValue("Exception"));
		ret.put("UserDefinedSymbolization", node.getChildValue("UserDefinedSymbolization"));
		ret.put("Layer", node.getChildValue("Layer"));
		return ret;
	}

}