Class ElementDecl
public class ElementDecl extends ElementImpl
{
// Methods
public final AttDef findAttDef(Name name);
public final ContentModel getContent();
public final Name getName();
public void save(XMLOutputStream o) throws IOException;
}
The class represents an element declaration in an XML Document Type Definition (DTD).
ElementImpl
|
+--ElementDecl
public final AttDef findAttDef(Name name);
Retrieves the attribute definition of the named attribute.
Return Value:
Returns an attribute definition object; returns null if it is not found.
Parameter | Description |
name
| The name of the attribute.
|
public final ContentModel getContent();
Retrieves the content model object for the element declaration.
Return Value:
Returns the content model for the element.
public final Name getName();
Retrieves the name of the element declaration.
Return Value:
Returns the Name object containing the element declaration name.
public void save(XMLOutputStream o) throws IOException;
Saves the element declaration in DTD syntax to the given output stream.
Return Value:
No return value.
Parameter | Description |
o
| The output stream to write to.
|
Exceptions:
IOException
if there is a problem writing to the output stream.