package org.geotools.wms.v1_1_1.bindings;


import java.util.List;

import org.geotools.xml.*;


import javax.xml.namespace.QName;

/**
 * Binding object for the type :_Exception.
 *
 * <p>
 *	<pre>
 *	 <code>
 *  &lt;xs:complexType name="_Exception"&gt;
 *      &lt;xs:sequence&gt;
 *          &lt;xs:element maxOccurs="unbounded" ref="Format"/&gt;
 *      &lt;/xs:sequence&gt;
 *  &lt;/xs:complexType&gt; 
 *		
 *	  </code>
 *	 </pre>
 * </p>
 *
 * @generated
 */
public class _ExceptionBinding extends AbstractComplexBinding {

	/**
	 * @generated
	 */
	public QName getTarget() {
		return WMSV1_1_1._Exception;
	}
	
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 *	
	 * @generated modifiable
	 */	
	public Class getType() {
		return String[].class;
	}
	
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 *	
	 * @generated modifiable
	 */	
	public Object parse(ElementInstance instance, Node node, Object value) 
		throws Exception {
		List formats = node.getChildValues("Format");
		return formats.toArray(new String[formats.size()]);
	}

}