|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.wutka.dtd.DTD
Represents a parsed Document Type Definition
Field Summary | |
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. |
Constructor Summary | |
DTD()
Creates a new DTD |
Method Summary | |
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). |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Hashtable elements
public Hashtable entities
public Hashtable notations
public Hashtable externalDTDs
public Vector items
public DTDElement rootElement
Constructor Detail |
public DTD()
Method Detail |
public void write(PrintWriter outWriter) throws IOException
write
in interface DTDOutput
outWriter
- The writer where the DTD will be writtenpublic boolean equals(Object ob)
equals
in class Object
public void setItems(Object[] newItems)
public Object[] getItems()
public void setItem(Object item, int i)
public Object getItem(int i)
public Vector getItemsByType(Class itemType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |