|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sessions.factories.XMLProjectReader
public class XMLProjectReader
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.
Field Summary | |
---|---|
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 Summary | |
---|---|
XMLProjectReader()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 TOPLINK_11_SCHEMA
public static final java.lang.String TOPLINK_10_SCHEMA
Constructor Detail |
---|
public XMLProjectReader()
Method Detail |
---|
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)
|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |