Constructor and Description |
---|
Entities() |
Modifier and Type | Method and Description |
---|---|
ExternalEntityDecl |
externalEntityDecl(String name,
String publicId,
String systemId,
URL baseURL,
String origin)
Adds specified external entity declaration to this set.
|
EntityDecl |
get(String name)
Returns the general or unparsed entity having specified name if found
in this set;
null otherwise. |
EntityDecl[] |
getAll()
Returns the (possibly empty) array containing all the declaration of
this set.
|
CharEntities |
getCharEntities()
Returns the set of character entities included in this set.
|
InternalEntityDecl |
internalEntityDecl(String name,
String value,
String origin)
Adds specified internal entity declaration to this set.
|
UnparsedEntityDecl |
unparsedEntityDecl(String name,
String publicId,
String systemId,
URL baseURL,
String notationName,
String origin)
Adds specified unparsed entity declaration to this set.
|
public InternalEntityDecl internalEntityDecl(String name, String value, String origin)
name
- The name of the entity. Starts with '%' if it is a
parameter entity.value
- The value of the entity.origin
- Not for public use: a string identifying the source where
this declaration is found.public ExternalEntityDecl 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 UnparsedEntityDecl unparsedEntityDecl(String name, String publicId, String systemId, URL baseURL, String notationName, String origin)
name
- The name of the entity.publicId
- The public ID of the unparsed entity, if any. May be
null
.systemId
- The system ID of the unparsed entity.baseURL
- The URL against which a relative system ID of the
unparsed entity should be resolved.notationName
- The name of the notation associated to the unparsed
entity.origin
- Not for public use: a string identifying the source where
this declaration is found.public EntityDecl[] getAll()
public EntityDecl get(String name)
null
otherwise.public CharEntities getCharEntities()