package com.jxml.quick.model.qjml;
import com.jxml.quick.ocm.*;
import com.jxml.quick.*;
import org.xml.sax.*;
import java.io.*;

/**
 * Models the targetFactory element in QJML.
 * The targetFactory element provides the name of a Java class which implements 
 * the interface com.jxml.quick.tf.QTargetFactory.
 <pre>
DTD:

&lt;!ELEMENT targetFactory <a href="#text">(#PCDATA)</a>>

&lt;!ATTLIST targetFactory
&nbsp;&nbsp;&nbsp;&nbsp;<a href="#target">target</a> CDATA "java.lang.Object"
&nbsp;&nbsp;&nbsp;&nbsp;ID id #IMPLIED
>
 </pre> 
 */
public class QMTargetFactory extends QMCloneable implements QMTarget, QBiModal
{
	/**
	 * The text content of the element.
	 */
	public String text="";

	/**
	 * Models the target attribute on the targetFactory element.
	 * This is an optional attribute which names the class of 
	 * objects which the target factory class instantiates.
	 */
	public String target="";

	/**
	 * Returns the text content of the element.
	 */
	public String getQText()
	{
		return text;
	}

	/**
	 * Sets the text content of the element.
	 */
	public void setQText(String text)
	{
		this.text=text;
	}

	public String getClassName()
		throws SAXException
	{
		return target;
	}
}
