public class ExternalEntityDecl extends EntityDecl
Modifier and Type | Field and Description |
---|---|
URL |
baseURL
The URL against which a relative system ID of the external entity
should be resolved.
|
String |
publicId
The public ID of the external entity, if any.
|
String |
systemId
The system ID of the external entity.
|
name, origin
Modifier | Constructor and Description |
---|---|
protected |
ExternalEntityDecl(Decl.Type declType,
String name,
String publicId,
String systemId,
URL baseURL,
String origin) |
|
ExternalEntityDecl(String name,
String publicId,
String systemId,
URL baseURL,
String origin)
Constructs the declaration of an external, general or parameter,
entity.
|
Modifier and Type | Method and Description |
---|---|
URL |
getURL()
Returns the fully resolved, possibly using XML catalogs, URL of this
entity.
|
void |
toString(StringBuilder buffer)
Appends the XML, parseable, form of this declaration to specified
buffer.
|
isCharEntity, isParameterEntity
appendExternalId, appendValue, toString
public final String publicId
null
.public final String systemId
public final URL baseURL
public ExternalEntityDecl(String name, String publicId, String systemId, URL baseURL, String origin)
name
- The name of the entity. Starts with '%' if it is a
parameter entity.publicId
- The public ID of the external entity, if any. May be
null
.systemId
- The system ID of the external entity.baseURL
- The URL against which a relative system ID of the
external entity should be resolved.origin
- Not for public use: a string identifying the source where
the entity declaration is found.public void toString(StringBuilder buffer)
Decl
public URL getURL()
EntityDecl
null
if there is no such URL (e.g.
internal entity) or if the URL is unknown or malformed.getURL
in class EntityDecl