com.wutka.dtd
Modifier and Type | Field and Description |
---|---|
java.util.Hashtable |
attributes
The element's attributes
|
DTDItem |
content
The element's content
|
java.lang.String |
name
The name of the element
|
Constructor and Description |
---|
DTDElement() |
DTDElement(java.lang.String aName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object ob) |
DTDAttribute |
getAttribute(java.lang.String attrName)
Gets an attribute for this element
|
DTDItem |
getContent()
Returns the content type of this element
|
java.lang.String |
getName()
Returns the name of this element
|
void |
setAttribute(java.lang.String attrName,
DTDAttribute attr)
Stores an attribute in this element
|
void |
setContent(DTDItem theContent)
Sets the content type of this element
|
void |
setName(java.lang.String aName)
Sets the name of this element
|
void |
write(java.io.PrintWriter out)
Writes out an element declaration and an attlist declaration (if necessary)
for this element
|
public java.lang.String name
public java.util.Hashtable attributes
public DTDItem content
public DTDElement()
public DTDElement(java.lang.String aName)
public void write(java.io.PrintWriter out) throws java.io.IOException
public boolean equals(java.lang.Object ob)
equals
in class java.lang.Object
public void setName(java.lang.String aName)
public java.lang.String getName()
public void setAttribute(java.lang.String attrName, DTDAttribute attr)
public DTDAttribute getAttribute(java.lang.String attrName)
public void setContent(DTDItem theContent)
public DTDItem getContent()
Copyright (c) 2001 Mark Wutka.