com.wutka.dtd
Class DTDItem
java.lang.Object
|
+--com.wutka.dtd.DTDItem
- All Implemented Interfaces:
- DTDOutput
- Direct Known Subclasses:
- DTDAny, DTDContainer, DTDEmpty, DTDName, DTDPCData
- public abstract class DTDItem
- extends Object
- implements DTDOutput
Represents any item in the DTD
- Version:
- $Revision: 1.12 $ $Date: 2000/09/01 13:21:05 $ by $Author: wutka $
- Author:
- Mark Wutka
cardinal
public DTDCardinal cardinal
- Indicates how often the item may occur
DTDItem
public DTDItem()
DTDItem
public DTDItem(DTDCardinal aCardinal)
write
public abstract void write(PrintWriter out)
throws IOException
- Writes out a declaration for this item
- Specified by:
write
in interface DTDOutput
equals
public boolean equals(Object ob)
- Overrides:
equals
in class Object
setCardinal
public void setCardinal(DTDCardinal aCardinal)
- Sets the cardinality of the item
getCardinal
public DTDCardinal getCardinal()
- Retrieves the cardinality of the item