IMSEVimse 1.0
Draft

se.kth.cid.xml
Interface ExternalEntity


public interface ExternalEntity

This interface represents an external XML entity. Such an entity has three characteristics: public ID, system ID and possibly document type (for DTDs).

Version:
$Revision: 1.1.1.1 $
Author:
Mikael Nilsson

Method Summary
 String getDocType()
          Returns the document type of this entity.
 Object getEntity()
          Returns the actual entity.
 String getPublicID()
          Returns the public ID of this entity.
 String getSystemID()
          Returns the system ID of this entity.
 

Method Detail

getPublicID

public String getPublicID()
Returns the public ID of this entity.
Returns:
the public ID of this entity. May be null.

getSystemID

public String getSystemID()
Returns the system ID of this entity.
Returns:
the system ID of this entity. May be null.

getDocType

public String getDocType()
Returns the document type of this entity. This is only reasonable for external DTDs. Other entities will return null here.
Returns:
the document type of this entity. May be null.

getEntity

public Object getEntity()
Returns the actual entity. The object returned must be a Reader or an InputStream.
Returns:
a Reader or an InputStream containing the entity.

IMSEVimse 1.0
Draft

Centre for user-oriented IT -design