com.bluecast.xml

Class EntityManager

public class EntityManager extends Object

Field Summary
static intGENERAL
static intPARAMETER
Constructor Summary
EntityManager()
EntityManager(EntityResolver resolver)
Method Summary
voidclear()
EntitygetByID(Entity context, String pubID, String sysID)
EntitygetByName(String name, int type)
EntityResolvergetResolver()
booleanputExternal(Entity context, String name, String pubID, String sysID, int type)
Defines an external entity.
booleanputInternal(String name, String value, int type)
Defines an internal entity.
booleanputUnparsed(Entity context, String name, String pubID, String sysID, String ndata, int type)
Defines an unparsed entity.
static StringresolveSystemID(String contextSysID, String sysID)
voidsetResolver(EntityResolver resolver)

Field Detail

GENERAL

public static final int GENERAL

PARAMETER

public static final int PARAMETER

Constructor Detail

EntityManager

public EntityManager()

EntityManager

public EntityManager(EntityResolver resolver)

Method Detail

clear

public void clear()

getByID

public Entity getByID(Entity context, String pubID, String sysID)

getByName

public Entity getByName(String name, int type)

getResolver

public EntityResolver getResolver()

putExternal

public boolean putExternal(Entity context, String name, String pubID, String sysID, int type)
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)
Defines an unparsed entity. Returns true if successful, false if the entity was already defined.

resolveSystemID

public static String resolveSystemID(String contextSysID, String sysID)

setResolver

public void setResolver(EntityResolver resolver)