|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wutka.dtd.DTDItem
com.wutka.dtd.DTDContainer
public abstract class DTDContainer
Represents an item that may contain other items (such as a DTDChoice or a DTDSequence)
Field Summary | |
---|---|
protected java.util.Vector |
items
|
Fields inherited from class com.wutka.dtd.DTDItem |
---|
cardinal |
Constructor Summary | |
---|---|
DTDContainer()
Creates a new DTDContainer |
Method Summary | |
---|---|
void |
add(DTDItem item)
Adds an element to the container |
boolean |
equals(java.lang.Object ob)
|
DTDItem[] |
getItem()
Retrieves the items in the container |
DTDItem |
getItem(int i)
Retrieves an item from the container |
DTDItem[] |
getItems()
Returns the elements as an array of items |
java.util.Vector |
getItemsVec()
Returns the elements as a vector (not a clone!) |
void |
remove(DTDItem item)
Removes an element from the container |
void |
setItem(DTDItem[] newItems)
Stores items in the container |
void |
setItem(DTDItem anItem,
int i)
Stores an item in the container |
abstract void |
write(java.io.PrintWriter out)
Writes out a declaration for this item |
Methods inherited from class com.wutka.dtd.DTDItem |
---|
getCardinal, setCardinal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector items
Constructor Detail |
---|
public DTDContainer()
Method Detail |
---|
public void add(DTDItem item)
public void remove(DTDItem item)
public java.util.Vector getItemsVec()
public DTDItem[] getItems()
public boolean equals(java.lang.Object ob)
equals
in class DTDItem
public void setItem(DTDItem[] newItems)
public DTDItem[] getItem()
public void setItem(DTDItem anItem, int i)
public DTDItem getItem(int i)
public abstract void write(java.io.PrintWriter out) throws java.io.IOException
DTDItem
write
in interface DTDOutput
write
in class DTDItem
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |