Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.xml.parser   Previous This
Package
Next

 


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

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
name The 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
o The output stream to write to.

Exceptions:

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

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.