| java.lang.Object org.ow2.easybeans.util.xml.SchemaEntityResolver
All known Subclasses: org.ow2.easybeans.persistence.xml.PersistenceUnitEntityResolver, org.ow2.easybeans.deployment.xml.parsing.WAREntityResolver, org.ow2.easybeans.deployment.xml.parsing.EJB3EntityResolver,
SchemaEntityResolver | public class SchemaEntityResolver implements EntityResolver(Code) | | Entity resolver allowing to find schema within the classloader.
author: Florent Benoit |
Method Summary | |
public InputSource | resolveEntity(String publicId, String systemId) The Parser will call this method before opening any external entity
except the top-level document entity.
Parameters: publicId - The public identifier of the external entity beingreferenced, or null if none was supplied. Parameters: systemId - The system identifier of the external entity beingreferenced. |
SchemaEntityResolver | public SchemaEntityResolver(String[] schemas)(Code) | | Constructor. Finds the XSD with classloader.
Parameters: schemas - the name of the schemas to resolve. |
resolveEntity | public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code) | | The Parser will call this method before opening any external entity
except the top-level document entity.
Parameters: publicId - The public identifier of the external entity beingreferenced, or null if none was supplied. Parameters: systemId - The system identifier of the external entity beingreferenced. An InputSource object describing the new input source, or null torequest that the parser open a regular URI connection to thesystem identifier. throws: SAXException - Any SAX exception, possibly wrapping anotherexception. throws: IOException - A Java-specific IO exception, possibly the result ofcreating a new InputStream or Reader for the InputSource. |
|
|