| java.lang.Object org.mmbase.util.XMLEntityResolver
XMLEntityResolver | public class XMLEntityResolver implements EntityResolver(Code) | | Take the systemId and converts it into a local file, using the MMBase config path
author: Gerard van Enk author: Michiel Meeuwissen version: $Id: XMLEntityResolver.java,v 1.68 2007/12/06 08:19:29 michiel Exp $ |
Inner Class :abstract static class Resource | |
Inner Class :static class StringResource extends Resource | |
Inner Class :static class FileResource extends Resource | |
Method Summary | |
protected static void | appendEntities(StringBuilder sb, Object o, String prefix, int level, Set<Object> os) | protected static StringBuilder | camelAppend(StringBuilder sb, String s) | public static void | clearMMEntities(boolean le) | public String | getDTDPath() | protected static synchronized String | getMMEntities() | public boolean | hasDTD() | public 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
Parameters: publicID - the Public ID to register Parameters: dtd - the name of the resourcefile Parameters: c - the class indicating the location of the resource in the pacakage structure. | public static void | registerSystemID(String systemID, String xsd, Class> c) It seems that in XSD's you don't have public id's. | public InputSource | resolveEntity(String publicId, String systemId) |
logEnts | protected static boolean logEnts(Code) | | |
XMLEntityResolver | public XMLEntityResolver()(Code) | | empty constructor
|
XMLEntityResolver | public XMLEntityResolver(boolean v)(Code) | | |
XMLEntityResolver | public XMLEntityResolver(boolean v, Class> base)(Code) | | |
clearMMEntities | public static void clearMMEntities(boolean le)(Code) | | |
getDTDPath | public String getDTDPath()(Code) | | The actually used path to the DTD |
getMMEntities | protected static synchronized String getMMEntities()(Code) | | |
hasDTD | public boolean hasDTD()(Code) | | whether the resolver has determined a DTD |
registerPublicID | public static void registerPublicID(String publicID, String dtd, Class> c)(Code) | | Register a given publicID, binding it to a resource determined by a given class and resource filename
Parameters: publicID - the Public ID to register Parameters: dtd - the name of the resourcefile Parameters: c - the class indicating the location of the resource in the pacakage structure. Theresource is to be found in the 'resources' package under the package of the class. since: MMBase-1.7 |
registerSystemID | public static void registerSystemID(String systemID, String xsd, Class> c)(Code) | | It seems that in XSD's you don't have public id's. So, this makes it possible to use system id.
since: MMBase-1.8 |
resolveEntity | public InputSource resolveEntity(String publicId, String systemId)(Code) | | Takes the systemId and returns the local location of the dtd/xsd
|
|
|