public class SDOSchemaLocationResolver
extends java.lang.Object
implements org.eclipse.persistence.sdo.helper.SchemaLocationResolver
| Constructor and Description | 
|---|
SDOSchemaLocationResolver(java.util.Map<commonj.sdo.Type,java.net.URL> schemaLocationMap)  | 
| Modifier and Type | Method and Description | 
|---|---|
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. | 
public SDOSchemaLocationResolver(java.util.Map<commonj.sdo.Type,java.net.URL> schemaLocationMap)
public java.lang.String resolveSchemaLocation(commonj.sdo.Type sourceType,
                                     commonj.sdo.Type targetType)
resolveSchemaLocation in interface org.eclipse.persistence.sdo.helper.SchemaLocationResolverpublic static java.lang.String getSystemFilePath(java.lang.String schemaFileName)
schemaFileName - name of a schema file in bc4j-svc-share.jarpublic static java.lang.String toClasspathLoc(java.lang.String filePath)
filePath - path name of a schema filepublic static java.net.URL toClasspathURL(java.lang.String filePath)
filePath - path name of a schema filepublic static java.net.URL toLocationURL(java.lang.String filePath)
filePath - path name of a schema filepublic static java.lang.String toRelativeLoc(java.lang.String sourcePath,
                             java.lang.String targetPath)
schemaLocation attribute.sourcePath - path name of the referencing schema filetargetPath - path name of the referenced schema file