Class Entity

public class Entity extends ElementImpl
{
  // Constructors
  public void saveEntity(XMLOutputStream o) throws IOException;

  // Methods
  public Object getAttribute(Name attName);
  public Enumeration getAttributes();
  public Name getName();
  public Name getTagName();
  public void save(XMLOutputStream o) throws IOException;
  public void setText(String text);
}

This class implements an Entity object representing an XML internal or external entity as defined in the XML Document Type Definition (DTD).

ElementImpl
  |
  +--Entity

Constructors

saveEntity

public void saveEntity(XMLOutputStream o) throws IOException;

Saves the entity to the given output stream.

ParameterDescription
oThe output stream.

Exceptions

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

Methods

getAttribute 

public Object getAttribute(Name attName);

getAttributes 

public Enumeration getAttributes();

getName 

public Name getName();

Retrieves the name of the entity.

Return Value

Returns the Name object containing the entity name.

getTagName 

public Name getTagName();

save 

public void save(XMLOutputStream o) throws IOException;

Saves the entity to the given output stream with indenting and new lines.

ParameterDescription
oThe output stream.

Exceptions

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

setText 

public void setText(String text);

Changes the text of entity.

ParameterDescription
textThe new text of the entity.