at.gv.egovernment.moa.util
Class  MOAEntityResolver
java.lang.Object
  |
  +--at.gv.egovernment.moa.util.MOAEntityResolver
- All Implemented Interfaces: 
- org.xml.sax.EntityResolver
- public class MOAEntityResolver- extends Object- implements org.xml.sax.EntityResolver
An EntityResolver that looks up entities stored as
 local resources.
 
 
The following DTDs are mapped to local resources: 
 
 - The XMLSchema.dtd
- The datatypes.dtd
For all other resources, an attempt is made to resolve them as resources,
 either absolute or relative to Constants.SCHEMA_ROOT.
- Author: 
- Patrick Peck, Sven Aigner
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MOAEntityResolver
public MOAEntityResolver()
resolveEntity
public org.xml.sax.InputSource resolveEntity(String publicId,
                                             String systemId)
- Resolve an entity.
 
 The systemIdparameter is used to perform the lookup of the
 entity as a resource, either by interpreting thesystemIdas
 an absolute resource path, or by appending the last path component ofsystemIdtoConstants.SCHEMA_ROOT.
- 
- Specified by: 
- resolveEntityin interface- org.xml.sax.EntityResolver
 
- 
- Parameters:
- publicId- The public ID of the resource.
- systemId- The system ID of the resource.
- Returns:
- An InputSourcefrom which the entity can be read, ornull, if the entity could not be found.
- See Also: 
- EntityResolver.resolveEntity(java.lang.String, java.lang.String)