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