Purpose: Allow for a EclipseLink Mapping Workbench generated deployment XML project file to be read. This reader returns an instance of Project to be used to initialize a EclipseLink session. This class supports reading the 11g 11.1.1 and 10g 10.1.3.
| Modifier and Type | Class and Description |
|---|---|
| private static class | XMLProjectReader.XMLSchemaResolver
INTERNAL: Workaround for bug #3503583. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| protected static Project | project
Cache the creation and initialization of the EclipseLink XML mapping project. |
| public static final String | |
| protected static boolean | shouldUseSchemaValidation
Allow for usage of schema validation to be configurable. |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static XMLParser | createXMLParser(XMLPlatform xmlPlatform, boolean namespaceAware, boolean whitespacePreserving, String schema)
|
| public static Project | |
| public static Project | read(Reader reader, ClassLoader classLoader)
PUBLIC: Read the EclipseLink project deployment XML from the reader on the file. |
| public static Project | read(String fileOrResourceName, ClassLoader classLoader)
PUBLIC: Read the EclipseLink project deployment XML from the file or resource name. |
| public static Project | |
| public static Project | read1013Format(Document document, ClassLoader classLoader)
INTERNAL: Read the TopLink 10.1.3 deployment XML format. |
| public static Project | read1111Format(Document document, ClassLoader classLoader)
INTERNAL: Read the TopLink 11.1.1 deployment XML format. |
| public static Project | readObjectPersistenceRuntimeFormat(Document document, ClassLoader classLoader, Project opmProject)
Read a project in the format of an ObjectPersistenceRuntimeXMLProject. |
| public static void | setShouldUseSchemaValidation(boolean value)
PUBLIC: Set if schema validation will be used when parsing the deployment XML. |
| public static boolean | shouldUseSchemaValidation()
PUBLIC: Return if schema validation will be used when parsing the deployment XML. |
| ECLIPSELINK_1_0_SCHEMA | back to summary |
|---|---|
| public static final String ECLIPSELINK_1_0_SCHEMA | |
| ECLIPSELINK_SCHEMA | back to summary |
|---|---|
| public static final String ECLIPSELINK_SCHEMA | |
| OPM_SCHEMA | back to summary |
|---|---|
| public static final String OPM_SCHEMA | |
| project | back to summary |
|---|---|
| protected static Project project Cache the creation and initialization of the EclipseLink XML mapping project. | |
| SCHEMA_DIR | back to summary |
|---|---|
| public static final String SCHEMA_DIR | |
| shouldUseSchemaValidation | back to summary |
|---|---|
| protected static boolean shouldUseSchemaValidation Allow for usage of schema validation to be configurable. | |
| TOPLINK_10_SCHEMA | back to summary |
|---|---|
| public static final String TOPLINK_10_SCHEMA | |
| TOPLINK_11_SCHEMA | back to summary |
|---|---|
| public static final String TOPLINK_11_SCHEMA | |
| XMLProjectReader | back to summary |
|---|---|
| private XMLProjectReader() | |
| createXMLParser | back to summary |
|---|---|
| private static XMLParser createXMLParser(XMLPlatform xmlPlatform, boolean namespaceAware, boolean whitespacePreserving, String schema) | |
| read | back to summary |
|---|---|
| public static Project read(String fileOrResourceName) PUBLIC: Read the EclipseLink project deployment XML from the file or resource name. If a resource name is used the default class loader will be used to resolve the resource. Note the default class loader must be able to resolve the domain classes. Note the file must be the deployment XML, not the Mapping Workbench project file. | |
| read | back to summary |
|---|---|
| public static Project read(Reader reader, ClassLoader classLoader) PUBLIC: Read the EclipseLink project deployment XML from the reader on the file. Note the class loader must be able to resolve the domain classes. Note the file must be the deployment XML, not the Mapping Workbench project file. This API supports 10g (10.0.3), 11g (11.1.1) formats. | |
| read | back to summary |
|---|---|
| public static Project read(String fileOrResourceName, ClassLoader classLoader) PUBLIC: Read the EclipseLink project deployment XML from the file or resource name. If a resource name is used the class loader will be used to resolve the resource. Note the class loader must be able to resolve the domain classes. Note the file must be the deployment XML, not the Mapping Workbench project file. | |
| read | back to summary |
|---|---|
| public static Project read(Reader reader) PUBLIC: Read the EclipseLink project deployment XML from the reader on the file. Note the default class loader must be able to resolve the domain classes. Note the file must be the deployment XML, not the Mapping Workbench project file. | |
| read1013Format | back to summary |
|---|---|
| public static Project read1013Format(Document document, ClassLoader classLoader) INTERNAL: Read the TopLink 10.1.3 deployment XML format. | |
| read1111Format | back to summary |
|---|---|
| public static Project read1111Format(Document document, ClassLoader classLoader) INTERNAL: Read the TopLink 11.1.1 deployment XML format. | |
| readObjectPersistenceRuntimeFormat | back to summary |
|---|---|
| public static Project readObjectPersistenceRuntimeFormat(Document document, ClassLoader classLoader, Project opmProject) Read a project in the format of an ObjectPersistenceRuntimeXMLProject. This could include a TopLink 11.1.1 project or a TopLink 10.1.3 project | |
| setShouldUseSchemaValidation | back to summary |
|---|---|
| public static void setShouldUseSchemaValidation(boolean value) PUBLIC: Set if schema validation will be used when parsing the deployment XML. By default schema validation is on, but can be turned off if validation problems occur, or to improve parsing performance. | |
| shouldUseSchemaValidation | back to summary |
|---|---|
| public static boolean shouldUseSchemaValidation() PUBLIC: Return if schema validation will be used when parsing the deployment XML. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public InputSource | resolveEntity(String
The public identifier of the external entity
being referenced, or null if none was supplied. publicId, String The system identifier of the external entity
being referenced. systemId)Implements org. |
| public URL |
| XMLSchemaResolver | back to summary |
|---|---|
| public XMLSchemaResolver() INTERNAL: | |
| resolveEntity | back to summary |
|---|---|
| public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException Implements org. INTERNAL: Resolve the XSD.
| |
| resolveURL | back to summary |
|---|---|
| public URL resolveURL(String resource) INTERNAL: Return the URL for the resource. | |