com.wutka.dtd
Class DTDItem
java.lang.Object
|
+--com.wutka.dtd.DTDItem
- Direct Known Subclasses:
- DTDAny, DTDContainer, DTDEmpty, DTDName, DTDPCData
- public abstract class DTDItem
- extends java.lang.Object
- implements DTDOutput
Represents any item in the DTD
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
cardinal
public DTDCardinal cardinal
- Indicates how often the item may occur
DTDItem
public DTDItem()
DTDItem
public DTDItem(DTDCardinal aCardinal)
write
public abstract void write(java.io.PrintWriter out)
throws java.io.IOException
- Writes out a declaration for this item
- Specified by:
- write in interface DTDOutput
equals
public boolean equals(java.lang.Object ob)
- Overrides:
- equals in class java.lang.Object
setCardinal
public void setCardinal(DTDCardinal aCardinal)
- Sets the cardinality of the item
getCardinal
public DTDCardinal getCardinal()
- Retrieves the cardinality of the item