public abstract class EntityCatalog extends Object implements EntityResolver
EntityCatalog.getDefault()
to get the master instance in system. Any parser working with
unknown XML documents should use it to avoid unnecessary Internet
connections.
You can register your own instances via lookup to add to the resolver pool, but for reasons of performance and predictability during startup it is best to provide the entity (e.g. some DTD you define) as the contents of a file in the system filesystem, in the /xml/entities/ folder, where the file path beneath this folder is based on the public ID as follows:
It is recommended that the entity file in /xml/entities/ also be given a file
attribute named hint.originalPublicID
with a string value giving the public ID.
This permits org.netbeans.modules.xml.catalog
to display the entry properly.
Modifier and Type | Field and Description |
---|---|
static String |
PUBLIC_ID
Deprecated.
Better to register entities individually by layer as described in class documentation.
|
Modifier | Constructor and Description |
---|---|
protected |
EntityCatalog()
Default constructor for subclasses (generally discouraged).
|
Modifier and Type | Method and Description |
---|---|
static EntityCatalog |
getDefault()
Get a master entity catalog which can delegate to any others that have
been registered via lookup.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolveEntity
@Deprecated public static final String PUBLIC_ID
EntityCatalog
,
so could be registered under Services
.protected EntityCatalog()
public static EntityCatalog getDefault()