public class EntityResolver extends Object implements EntityResolver
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
EntityResolver.FileResource |
(package private) static class |
EntityResolver.Resource
Container for dtd resources information
|
(package private) static class |
EntityResolver.StringResource |
| Modifier and Type | Field and Description |
|---|---|
static String |
DOMAIN |
static String |
DTD_SUBPATH |
protected static String |
ents |
protected static boolean |
logEnts |
static String |
XMLNS_SUBPATH |
| Constructor and Description |
|---|
EntityResolver()
empty constructor
|
EntityResolver(boolean v) |
EntityResolver(boolean v,
Class<?> base) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
appendEntities(StringBuilder sb,
Object o,
String prefix,
int level,
Set<Object> os) |
protected static StringBuilder |
camelAppend(StringBuilder sb,
String s) |
static void |
clearMMEntities(boolean le) |
String |
getDTDPath() |
protected static String |
getMMEntities() |
boolean |
hasDTD() |
static void |
registerPublicID(String publicID,
String dtd,
Class<?> c)
Register a given publicID, binding it to a resource determined by a given class and resource filename
|
static void |
registerSystemID(String systemID,
String xsd,
Class<?> c)
It seems that in XSD's you don't have public id's.
|
InputSource |
resolveEntity(String publicId,
String systemId)
Takes the systemId and returns the local location of the dtd/xsd
|
public static final String DOMAIN
public static final String DTD_SUBPATH
public static final String XMLNS_SUBPATH
protected static String ents
protected static boolean logEnts
public EntityResolver()
public EntityResolver(boolean v)
public EntityResolver(boolean v,
Class<?> base)
public static void registerPublicID(String publicID, String dtd, Class<?> c)
publicID - the Public ID to registerdtd - the name of the resourcefilec - the class indicating the location of the resource in the pacakage structure. The
resource is to be found in the 'resources' package under the package of the class.public static void registerSystemID(String systemID, String xsd, Class<?> c)
protected static StringBuilder camelAppend(StringBuilder sb, String s)
protected static void appendEntities(StringBuilder sb, Object o, String prefix, int level, Set<Object> os)
protected static String getMMEntities()
public static void clearMMEntities(boolean le)
public InputSource resolveEntity(String publicId, String systemId)
resolveEntity in interface EntityResolverpublic boolean hasDTD()
public String getDTDPath()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}