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 :_ScaleHint.
 *
 * <p>
 *	<pre>
 *	 <code>
 *  &lt;xs:complexType name="_ScaleHint"&gt;
 *      &lt;xs:attribute name="min" use="required"/&gt;
 *      &lt;xs:attribute name="max" use="required"/&gt;
 *  &lt;/xs:complexType&gt; 
 *		
 *	  </code>
 *	 </pre>
 * </p>
 *
 * @generated
 */
public class _ScaleHintBinding extends AbstractComplexBinding {

	/**
	 * @generated
	 */
	public QName getTarget() {
		return WMSV1_1_1._ScaleHint;
	}
	
	/**
	 * <!-- 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("max", node.getAttributeValue("max"));
		ret.put("min", node.getAttributeValue("min"));
		return ret;
		
	}

}