public class XMLProjectReader
extends java.lang.Object
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 | Field and Description |
---|---|
static java.lang.String |
ECLIPSELINK_1_0_SCHEMA |
static java.lang.String |
ECLIPSELINK_SCHEMA |
static java.lang.String |
OPM_SCHEMA |
protected static Project |
project
Cache the creation and initialization of the EclipseLink XML mapping project.
|
static java.lang.String |
SCHEMA_DIR |
protected static boolean |
shouldUseSchemaValidation
Allow for usage of schema validation to be configurable.
|
static java.lang.String |
TOPLINK_10_SCHEMA |
static java.lang.String |
TOPLINK_11_SCHEMA |
Constructor and Description |
---|
XMLProjectReader() |
Modifier and Type | Method and Description |
---|---|
static Project |
read(java.io.Reader reader)
PUBLIC:
Read the EclipseLink project deployment XML from the reader on the file.
|
static Project |
read(java.io.Reader reader,
java.lang.ClassLoader classLoader)
PUBLIC:
Read the EclipseLink project deployment XML from the reader on the file.
|
static Project |
read(java.lang.String fileOrResourceName)
PUBLIC:
Read the EclipseLink project deployment XML from the file or resource name.
|
static Project |
read(java.lang.String fileOrResourceName,
java.lang.ClassLoader classLoader)
PUBLIC:
Read the EclipseLink project deployment XML from the file or resource name.
|
static Project |
read1013Format(org.w3c.dom.Document document,
java.lang.ClassLoader classLoader)
INTERNAL:
Read the TopLink 10.1.3 deployment XML format.
|
static Project |
read1111Format(org.w3c.dom.Document document,
java.lang.ClassLoader classLoader)
INTERNAL:
Read the TopLink 11.1.1 deployment XML format.
|
static Project |
readObjectPersistenceRuntimeFormat(org.w3c.dom.Document document,
java.lang.ClassLoader classLoader,
Project opmProject)
Read a project in the format of an ObjectPersistenceRuntimeXMLProject.
|
static void |
setShouldUseSchemaValidation(boolean value)
PUBLIC:
Set if schema validation will be used when parsing the deployment XML.
|
static boolean |
shouldUseSchemaValidation()
PUBLIC:
Return if schema validation will be used when parsing the deployment XML.
|
protected static boolean shouldUseSchemaValidation
protected static Project project
public static final java.lang.String SCHEMA_DIR
public static final java.lang.String OPM_SCHEMA
public static final java.lang.String ECLIPSELINK_SCHEMA
public static final java.lang.String ECLIPSELINK_1_0_SCHEMA
public static final java.lang.String TOPLINK_11_SCHEMA
public static final java.lang.String TOPLINK_10_SCHEMA
public static boolean shouldUseSchemaValidation()
public static void setShouldUseSchemaValidation(boolean value)
public static Project read(java.lang.String fileOrResourceName)
public static Project read(java.io.Reader reader, java.lang.ClassLoader classLoader)
public static Project read(java.lang.String fileOrResourceName, java.lang.ClassLoader classLoader)
public static Project read1013Format(org.w3c.dom.Document document, java.lang.ClassLoader classLoader)
public static Project read1111Format(org.w3c.dom.Document document, java.lang.ClassLoader classLoader)
public static Project readObjectPersistenceRuntimeFormat(org.w3c.dom.Document document, java.lang.ClassLoader classLoader, Project opmProject)
document
- classLoader
- opmProject
- public static Project read(java.io.Reader reader)