public class DocTypeEntityResolver extends EntityResolver
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(String name)
Check if an entity is defined.
|
String |
resolve(String name)
Resolve an entity reference.
|
String |
resolveLiteralValueOfEntity(String name,
String text)
Resolve character and parameter-entity references
|
add, clear, encode, expand, expandNumericEntity, getCharValidator, getParent, setCharValidator, stripName, validateEntitypublic DocTypeEntityResolver(DocType docType)
public DocTypeEntityResolver(DocType docType, EntityResolver parent)
public DocType getDocType()
public boolean isDefined(String name)
EntityResolverisDefined in class EntityResolvername - The name of an entity ("lt" or "<").nullpublic String resolve(String name)
EntityResolverThis returns the text stored for this entity reference. No recursive expansion takes place.
resolve in class EntityResolvername - The name of an entity ("lt" or "<").nullCopyright © 2008–2015. All rights reserved.