Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.jbo.service.helper
Class SDOSchemaLocationResolver

java.lang.Object
  extended by oracle.jbo.service.helper.SDOSchemaLocationResolver
All Implemented Interfaces:
org.eclipse.persistence.sdo.helper.SchemaLocationResolver

public class SDOSchemaLocationResolver
extends java.lang.Object
implements org.eclipse.persistence.sdo.helper.SchemaLocationResolver

Since:
release specific (what release of product did this appear in)

Constructor Summary
SDOSchemaLocationResolver(java.util.Map<commonj.sdo.Type,java.net.URL> schemaLocationMap)
           
 
Method Summary
static java.lang.String getSystemFilePath(java.lang.String schemaFileName)
          Gets the classpath URL of a system schema file name, e.g.
 java.lang.String resolveSchemaLocation(commonj.sdo.Type sourceType, commonj.sdo.Type targetType)
           
static java.lang.String toClasspathLoc(java.lang.String filePath)
          Builds an absolute URI reference using the "classpath:/" protocol.
static java.net.URL toClasspathURL(java.lang.String filePath)
          Creates a new URL instance using the "classpath:/" protocol.
static java.net.URL toLocationURL(java.lang.String filePath)
          Creates a new URL instance suitable for schema location resolution.
static java.lang.String toRelativeLoc(java.lang.String sourcePath, java.lang.String targetPath)
          Derives a relative URI reference suitable to be the value of the schemaLocation attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDOSchemaLocationResolver

public SDOSchemaLocationResolver(java.util.Map<commonj.sdo.Type,java.net.URL> schemaLocationMap)
Method Detail

resolveSchemaLocation

public java.lang.String resolveSchemaLocation(commonj.sdo.Type sourceType,
                                              commonj.sdo.Type targetType)
Specified by:
resolveSchemaLocation in interface org.eclipse.persistence.sdo.helper.SchemaLocationResolver

getSystemFilePath

public static java.lang.String getSystemFilePath(java.lang.String schemaFileName)
Gets the classpath URL of a system schema file name, e.g. "classpath:/META-INF/wsdl/BC4JService.xsd".

Parameters:
schemaFileName - name of a schema file in bc4j-svc-share.jar
Returns:
the schema file pathname.

toClasspathLoc

public static java.lang.String toClasspathLoc(java.lang.String filePath)
Builds an absolute URI reference using the "classpath:/" protocol.

Parameters:
filePath - path name of a schema file
Returns:
a schema location URL spec.

toClasspathURL

public static java.net.URL toClasspathURL(java.lang.String filePath)
Creates a new URL instance using the "classpath:/" protocol.

Parameters:
filePath - path name of a schema file
Returns:
a schema location URL.

toLocationURL

public static java.net.URL toLocationURL(java.lang.String filePath)
Creates a new URL instance suitable for schema location resolution.

Parameters:
filePath - path name of a schema file
Returns:
a schema location URL.

toRelativeLoc

public static java.lang.String toRelativeLoc(java.lang.String sourcePath,
                                             java.lang.String targetPath)
Derives a relative URI reference suitable to be the value of the schemaLocation attribute.

Parameters:
sourcePath - path name of the referencing schema file
targetPath - path name of the referenced schema file
Returns:
the location of the target schema file relative to the source.

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

Copyright © 1997, 2011, Oracle. All rights reserved.