|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.wutka.dtd.DTDAttlist
Represents an ATTLIST declaration in the DTD. Although attributes are associated with elements, the ATTLIST is here to allow the DTD object to write out the DTD in roughly the original form. Because the ATTLIST may appear somewhere other than immediately after the ELEMENT, this object is used to keep track of where it is.
Field Summary | |
Vector |
attributes
The attlist's attributes |
String |
name
The name of the element |
Constructor Summary | |
DTDAttlist()
|
|
DTDAttlist(String aName)
|
Method Summary | |
boolean |
equals(Object ob)
|
DTDAttribute[] |
getAttribute()
Returns the attributes in this list |
DTDAttribute |
getAttribute(int i)
Returns a specific attribute from the list |
String |
getName()
Returns the entity name of this attlist |
void |
setAttribute(DTDAttribute[] attrs)
Sets the list of attributes |
void |
setAttribute(DTDAttribute attr,
int i)
Sets a specific attribute in the list |
void |
setName(String aName)
Sets the entity name of this attlist |
void |
write(PrintWriter out)
Writes out an ATTLIST declaration |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public String name
public Vector attributes
Constructor Detail |
public DTDAttlist()
public DTDAttlist(String aName)
Method Detail |
public void write(PrintWriter out) throws IOException
write
in interface DTDOutput
public boolean equals(Object ob)
equals
in class Object
public String getName()
public void setName(String aName)
public DTDAttribute[] getAttribute()
public void setAttribute(DTDAttribute[] attrs)
public DTDAttribute getAttribute(int i)
public void setAttribute(DTDAttribute attr, int i)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |