com.wutka.dtd

Class DTDChoice

Implemented Interfaces:
DTDOutput

public class DTDChoice
extends DTDContainer

Represents a choice of items. A choice in a DTD looks like (option1 | option2 | option3)
Version:
$Revision: 1.16 $ $Date: 2002/07/19 01:20:11 $ by $Author: wutka $
Author:
Mark Wutka

Field Summary

Fields inherited from class com.wutka.dtd.DTDContainer

items

Fields inherited from class com.wutka.dtd.DTDItem

cardinal

Constructor Summary

DTDChoice()
Creates a new DTDContainer

Method Summary

boolean
equals(Object ob)
void
write(PrintWriter out)
Writes out the possible choices to a PrintWriter

Methods inherited from class com.wutka.dtd.DTDContainer

add, equals, getItem, getItem, getItems, getItemsVec, remove, setItem, setItem, write

Methods inherited from class com.wutka.dtd.DTDItem

equals, getCardinal, setCardinal, write

Constructor Details

DTDChoice

public DTDChoice()
Creates a new DTDContainer

Method Details

equals

public boolean equals(Object ob)
Overrides:
equals in interface DTDContainer

write

public void write(PrintWriter out)
            throws IOException
Writes out the possible choices to a PrintWriter
Specified by:
write in interface DTDOutput
Overrides:
write in interface DTDContainer

Copyright (c) 2001 Mark Wutka.