1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
package com.wutka.dtd;
import java.io.*;
/** Represents the ANY keyword in an Element's content spec
*
* @author Mark Wutka
* @version $Revision: 1.16 $ $Date: 2002/07/19 01:20:11 $ by $Author: wutka $
*/
public class DTDAny extends DTDItem
{
public DTDAny()
{
}
/** Writes "ANY" to a print writer */
public void write(PrintWriter out)
throws IOException
{
out.print("ANY");
cardinal.write(out);
}
public boolean equals(Object ob)
{
if (ob == this) return true;
if (!(ob instanceof DTDAny)) return false;
return super.equals(ob);
}
}
|