- java.lang.Object
-
- org.eclipse.persistence.sdo.helper.DefaultSchemaLocationResolver
-
- All Implemented Interfaces:
SchemaLocationResolver
public class DefaultSchemaLocationResolver extends 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
- See Also:
SchemaLocationResolver
-
-
Constructor Summary
Constructors Constructor Description DefaultSchemaLocationResolver(Map schemaLocationMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
resolveSchemaLocation(Type sourceType, Type targetType)
Return the value for the schemaLocation attribute of the generated Importvoid
setMap(Map schemaLocations)
Set the map of schemaLocations keyed on QName of the target SDO Type
-
-
-
Constructor Detail
-
DefaultSchemaLocationResolver
public DefaultSchemaLocationResolver(Map schemaLocationMap)
-
-
Method Detail
-
resolveSchemaLocation
public String resolveSchemaLocation(Type sourceType, Type targetType)
Return the value for the schemaLocation attribute of the generated Import- Specified by:
resolveSchemaLocation
in interfaceSchemaLocationResolver
- Parameters:
sourceType
- the source typetargetType
- the target type- Returns:
- the value for the schemaLocation attribute of the generated Import
-
setMap
public void setMap(Map schemaLocations)
Set the map of schemaLocations keyed on QName of the target SDO Type- Parameters:
schemaLocations
- Map keyed on QName of the target SDO Type
-
-