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

/**
 * Models the enum element in QJML.
 * The enum element specifies a single valid value.
 <pre>
DTD:

&lt;!ELEMENT enum <a href="#remList">(rem*)</a>>

&lt;!ATTLIST enum
&nbsp;&nbsp;&nbsp;&nbsp;<a href="#value">value</a> CDATA #REQUIRED
&nbsp;&nbsp;&nbsp;&nbsp;ID id #IMPLIED
>
 </pre>
 */
public class QMEnum extends QMCloneable implements QMValid
{
	/**
	 * Models the value attribute on the enum element.
	 * This attribute provides a valid value for the content of a text element.
	 */
	public String value="";

	/**
	 * A container for QMRem objects, which model rem elements.
	 * The rem elements are optional and repeating.
	 */
	public ArrayList remList=new ArrayList();

	/**
	 * Returns a deep copy of this object.
	 */
	public Object clone()
	{
		QMEnum rv=(QMEnum)super.clone();
		rv.remList=clone(remList);
		return rv;
	}
}
