public class DefaultSchemaLocationResolver extends java.lang.Object implements SchemaLocationResolver
Purpose: Default implementation of the org.eclipse.persistence.sdo.helper.SchemaLocationResolver interface By default set a Map keyed on QName of types and value is the schemaLocation
SchemaLocationResolver
Constructor and Description |
---|
DefaultSchemaLocationResolver(java.util.Map schemaLocationMap) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
resolveSchemaLocation(Type sourceType,
Type targetType)
Return the value for the schemaLocation attribute of the generated Import
|
void |
setMap(java.util.Map schemaLocations)
Set the map of schemaLocations keyed on QName of the target SDO Type
|
public DefaultSchemaLocationResolver(java.util.Map schemaLocationMap)
public java.lang.String resolveSchemaLocation(Type sourceType, Type targetType)
resolveSchemaLocation
in interface SchemaLocationResolver
sourceType
- the source typetargetType
- the target typepublic void setMap(java.util.Map schemaLocations)
schemaLocations
- Map keyed on QName of the target SDO Type