Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-03

oracle.toplink.tools.workbench
Class XMLProjectReader

java.lang.Object
  extended by oracle.toplink.tools.workbench.XMLProjectReader

public class XMLProjectReader
extends java.lang.Object

Purpose: Allow for a TopLink Mapping Workbench generated deployment XML project file to be read. This reader returns an instance of Project to be used to initialize a TopLink session. This class supports reading the 11g 11.1.1 and 10g 10.1.3 and (currently) the 9.0.4/10.1.2 formats.

Since:
TopLink 3.0

Constructor Summary
XMLProjectReader()
           
 
Method Summary
static Project read(java.io.Reader reader)
          Read the TopLink project deployment XML from the reader on the file.
static Project read(java.io.Reader reader, java.lang.ClassLoader classLoader)
          Read the TopLink project deployment XML from the reader on the file.
static Project read(java.lang.String fileOrResourceName)
          Read the TopLink project deployment XML from the file or resource name.
static Project read(java.lang.String fileOrResourceName, java.lang.ClassLoader classLoader)
          Read the TopLink project deployment XML from the file or resource name.
static void setShouldUseSchemaValidation(boolean value)
          Set if schema validation will be used when parsing the deployment XML.
static boolean shouldUseSchemaValidation()
          Return if schema validation will be used when parsing the deployment XML.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLProjectReader

public XMLProjectReader()
Method Detail

shouldUseSchemaValidation

public static boolean shouldUseSchemaValidation()
Return if schema validation will be used when parsing the deployment XML.


setShouldUseSchemaValidation

public static void setShouldUseSchemaValidation(boolean value)
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.


read

public static Project read(java.lang.String fileOrResourceName)
Read the TopLink 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

public static Project read(java.io.Reader reader,
                           java.lang.ClassLoader classLoader)
Read the TopLink 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 the 10g (9.0.4) (currently), 10g (10.0.3), 11g (11.1.1) formats.


read

public static Project read(java.lang.String fileOrResourceName,
                           java.lang.ClassLoader classLoader)
Read the TopLink 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

public static Project read(java.io.Reader reader)
Read the TopLink 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.


Copyright © 1998, 2010, Oracle. All Rights Reserved.