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;
  public Element toSchema();
}

The class represents an element declaration in an XML Document Type Definition (DTD).

ElementImpl
  |
  +--ElementDecl

Methods

findAttDef 

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.

ParameterDescription
nameThe name of the attribute.

getContent 

public final ContentModel getContent();

Retrieves the content model object for the element declaration.

Return Value

Returns the content model for the element.

getName 

public final Name getName();

Retrieves the name of the element declaration.

Return Value

Returns the Name object containing the element declaration name.

save 

public void save(XMLOutputStream o) throws IOException;

Saves the element declaration in DTD syntax to the given output stream.

Return Value

No return value.

ParameterDescription
oThe output stream to write to.

Exceptions

>IOException if there is a problem writing to the output stream.

toSchema 

public Element toSchema();