Klasse EntityReferences
java.lang.Object
org.apache.torque.generator.configuration.source.EntityReferences
- Alle implementierten Schnittstellen:
EntityResolver
Resolves system Ids for schema files to the schema file content.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addEntityReference
(String systemId, byte[] content) Adds a new entity reference.boolean
containsSystemId
(String systemId) Returns whether the given system id is known.Returns a copy of the entity reference map.resolveEntity
(String publicId, String systemId) An implementation of the SAXEntityResolver
interface to be called by the XML parser.
-
Konstruktordetails
-
EntityReferences
public EntityReferences()
-
-
Methodendetails
-
addEntityReference
Adds a new entity reference.- Parameter:
systemId
- the systemId of the entity, not null.content
- the content of the entity, not null.- Löst aus:
NullPointerException
- if systemId or content are null.IllegalArgumentException
- if the systemId is already defined.
-
containsSystemId
Returns whether the given system id is known.- Parameter:
systemId
- the system id to check.- Gibt zurück:
- true if the system id can be resolved, false otherwise.
-
getEntityReferences
Returns a copy of the entity reference map.- Gibt zurück:
- a copy of the entity reference map.
-
resolveEntity
An implementation of the SAXEntityResolver
interface to be called by the XML parser. If the systemId is known, the corresponding resource from the jar is returned. In all other cases, null is returned to indicate that the parser should open a regular connection to the systemId URI.- Angegeben von:
resolveEntity
in SchnittstelleEntityResolver
- Parameter:
publicId
- The public identifier of the external entitysystemId
- The system identifier of the external entity- Gibt zurück:
- An
InputSource
for the entity if the systemId is known, or null otherwise. - Löst aus:
IOException
SAXException
-