com.wutka.dtd
public abstract class DTDContainer extends DTDItem
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
items |
Constructor and Description |
---|
DTDContainer()
Creates a new DTDContainer
|
Modifier and Type | Method and Description |
---|---|
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
|
getCardinal, setCardinal
public void add(DTDItem item)
public void remove(DTDItem item)
public java.util.Vector getItemsVec()
public DTDItem[] getItems()
public void setItem(DTDItem[] newItems)
public DTDItem[] getItem()
public void setItem(DTDItem anItem, int i)
public DTDItem getItem(int i)
Copyright (c) 2001 Mark Wutka.