com.wutka.dtd

Class DTDNotationList

Implemented Interfaces:
DTDOutput

public class DTDNotationList
extends Object
implements DTDOutput

Represents a notation declaration for an attribute
Version:
$Revision: 1.16 $ $Date: 2002/07/19 01:20:11 $ by $Author: wutka $
Author:
Mark Wutka

Field Summary

protected Vector
items

Constructor Summary

DTDNotationList()
Creates a new notation

Method Summary

void
add(String item)
Adds a item to the list of notation values
boolean
equals(Object ob)
String[]
getItem()
Returns the items in the notation list
String
getItem(int i)
Retrieves an item from the notation list
String[]
getItems()
Returns the list of notation values as an array
Vector
getItemsVec()
Returns the list of notation values as a vector
void
remove(String item)
Removes an item from the list of notation values
void
setItem(String item, int i)
Stores an item in the notation list
void
setItem(String[] newItems)
Sets the items in the notation list
void
write(PrintWriter out)
Writes a declaration for this notation

Field Details

items

protected Vector items

Constructor Details

DTDNotationList

public DTDNotationList()
Creates a new notation

Method Details

add

public void add(String item)
Adds a item to the list of notation values

equals

public boolean equals(Object ob)

getItem

public String[] getItem()
Returns the items in the notation list

getItem

public String getItem(int i)
Retrieves an item from the notation list

getItems

public String[] getItems()
Returns the list of notation values as an array

getItemsVec

public Vector getItemsVec()
Returns the list of notation values as a vector

remove

public void remove(String item)
Removes an item from the list of notation values

setItem

public void setItem(String item,
                    int i)
Stores an item in the notation list

setItem

public void setItem(String[] newItems)
Sets the items in the notation list

write

public void write(PrintWriter out)
            throws IOException
Writes a declaration for this notation
Specified by:
write in interface DTDOutput

Copyright (c) 2001 Mark Wutka.