com.bluecast.xml
Class EntityManager
java.lang.Object
com.bluecast.xml.EntityManager
public class EntityManager
extends java.lang.Object
void | clear()
|
Entity | getByID(Entity context, String pubID, String sysID)
|
Entity | getByName(String name, int type)
|
EntityResolver | getResolver()
|
boolean | putExternal(Entity context, String name, String pubID, String sysID, int type) - Defines an external entity.
|
boolean | putInternal(String name, String value, int type) - Defines an internal entity.
|
boolean | putUnparsed(Entity context, String name, String pubID, String sysID, String ndata, int type) - Defines an unparsed entity.
|
static String | resolveSystemID(String contextSysID, String sysID)
|
void | setResolver(EntityResolver resolver)
|
GENERAL
public static final int GENERAL
PARAMETER
public static final int PARAMETER
EntityManager
public EntityManager()
getByID
public Entity getByID(Entity context,
String pubID,
String sysID)
throws MalformedURLException
getByName
public Entity getByName(String name,
int type)
putExternal
public boolean putExternal(Entity context,
String name,
String pubID,
String sysID,
int type)
throws MalformedURLException
Defines an external entity. Returns true if successful,
false if the entity was already defined.
putInternal
public boolean putInternal(String name,
String value,
int type)
Defines an internal entity. Returns true if successful,
false if the entity was already defined.
putUnparsed
public boolean putUnparsed(Entity context,
String name,
String pubID,
String sysID,
String ndata,
int type)
throws MalformedURLException
Defines an unparsed entity. Returns true if successful,
false if the entity was already defined.
resolveSystemID
public static String resolveSystemID(String contextSysID,
String sysID)
throws MalformedURLException