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

/**
 * Models an excludes element in QDML.
 * This element names a coin which is not to be included in the document.
 * There is no effect on coins that are part of the same QDML document as the excludes element.
<pre>
DTD:

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

&lt;!ATTLIST excludes
&nbsp;&nbsp;&nbsp;&nbsp;ID id #IMPLIED
>
</pre>
 */
public class QDMExcludes extends QDMCloneable implements QBiModal
{
	/**
	 * Represents the text content of the excludes element. 
	 * This text content must be the unique (within any given document) label or tag
	 * assigned to a coin.
	 * (There are five kinds of coin elements: interface, abstract, text, bean, and link.)
	 */
	public String text="";

	/**
	 * 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;
	}

	/**
	 * Builds the maps.
	 * This method is called durring initialization of the data model.
	 */
	public void buildMaps(Map coinMap, Map contentMap)
		throws SAXException
	{
		coinMap.remove(text);
	}
}
