public class DocTypeEntityResolver extends EntityResolver
Modifier and Type | Field and Description |
---|---|
private DocType |
docType |
AMP_ESCAPE, APOS_ESCAPE, GT_ESCAPE, LT_ESCAPE, QUOT_ESCAPE, resolveMap
Constructor and Description |
---|
DocTypeEntityResolver(DocType docType) |
DocTypeEntityResolver(DocType docType,
EntityResolver parent) |
Modifier and Type | Method and Description |
---|---|
DocType |
getDocType() |
boolean |
isDefined(java.lang.String name)
Check if an entity is defined.
|
java.lang.String |
resolve(java.lang.String name)
Resolve an entity reference.
|
java.lang.String |
resolveLiteralValueOfEntity(java.lang.String name,
java.lang.String text)
Resolve character and parameter-entity references
|
add, clear, encode, expand, expandNumericEntity, getCharValidator, getParent, setCharValidator, stripName, validateEntity
private final DocType docType
public DocTypeEntityResolver(DocType docType)
public DocTypeEntityResolver(DocType docType, EntityResolver parent)
public DocType getDocType()
public boolean isDefined(java.lang.String name)
EntityResolver
isDefined
in class EntityResolver
name
- The name of an entity ("lt" or "<").null
public java.lang.String resolve(java.lang.String name)
EntityResolver
This returns the text stored for this entity reference. No recursive expansion takes place.
resolve
in class EntityResolver
name
- The name of an entity ("lt" or "<").null
public java.lang.String resolveLiteralValueOfEntity(java.lang.String name, java.lang.String text)