com.wutka.dtd
Class DTD
- DTDOutput
Represents a parsed Document Type Definition
$Revision: 1.16 $ $Date: 2002/07/19 01:20:11 $ by $Author: wutka $ Hashtable | elements - Contains all the elements defined in the DTD
|
Hashtable | entities - Contains all the entities defined in the DTD
|
Hashtable | externalDTDs - Contains parsed DTD's for any external entity DTD declarations
|
Vector | items - Contains all the items defined in the DTD in their original order
|
Hashtable | notations - Contains all the notations defined in the DTD
|
DTDElement | rootElement - Contains the element that is most likely the root element or null
if the root element can't be determined.
|
boolean | equals(Object ob) - Returns true if this object is equal to another
|
Object | getItem(int i) - Retrieves an item from the items array
|
Object[] | getItems() - Returns the items as an array
|
Vector | getItemsByType(Class itemType) - Retrieves a list of items of a particular type
|
void | setItem(Object item, int i) - Stores an item in the items array
|
void | setItems(Object[] newItems) - Stores an array of items in the items array
|
void | write(PrintWriter outWriter) - Writes the DTD to an output writer in standard DTD format (the format
the parser normally reads).
|
elements
public Hashtable elements
Contains all the elements defined in the DTD
entities
public Hashtable entities
Contains all the entities defined in the DTD
externalDTDs
public Hashtable externalDTDs
Contains parsed DTD's for any external entity DTD declarations
items
public Vector items
Contains all the items defined in the DTD in their original order
notations
public Hashtable notations
Contains all the notations defined in the DTD
rootElement
public DTDElement rootElement
Contains the element that is most likely the root element or null
if the root element can't be determined.
DTD
public DTD()
Creates a new DTD
equals
public boolean equals(Object ob)
Returns true if this object is equal to another
getItem
public Object getItem(int i)
Retrieves an item from the items array
getItems
public Object[] getItems()
Returns the items as an array
getItemsByType
public Vector getItemsByType(Class itemType)
Retrieves a list of items of a particular type
setItem
public void setItem(Object item,
int i)
Stores an item in the items array
setItems
public void setItems(Object[] newItems)
Stores an array of items in the items array
write
public void write(PrintWriter outWriter)
throws IOException
Writes the DTD to an output writer in standard DTD format (the format
the parser normally reads).
- write in interface DTDOutput
outWriter
- The writer where the DTD will be written
Copyright (c) 2001 Mark Wutka.