public class LocationMapper extends Object
Constructor and Description |
---|
LocationMapper()
Create a LocationMapper with no mapping yet
|
LocationMapper(LocationMapper locMapper)
Create a LocationMapper made like another one
This is a deep copy of the location and prefix maps..
|
Modifier and Type | Method and Description |
---|---|
void |
addAltEntry(String uri,
String alt) |
void |
addAltPrefix(String uriPrefix,
String altPrefix) |
String |
altMapping(String uri) |
String |
altMapping(String uri,
String otherwise)
Apply mappings: first try for an exact alternative location, then
try to remap by prefix, finally, try the special case of filenames
in a specific base directory.
|
void |
copyFrom(LocationMapper lmap2) |
boolean |
equals(Object obj) |
String |
getAltEntry(String uri) |
String |
getAltPrefix(String uriPrefix) |
int |
hashCode() |
Iterator<String> |
listAltEntries()
Iterate over all the entries registered
|
Iterator<String> |
listAltPrefixes()
Iterate over all the prefixes registered
|
void |
removeAltEntry(String uri) |
void |
removeAltPrefix(String uriPrefix) |
Model |
toModel() |
void |
toModel(Model model) |
String |
toString() |
public LocationMapper()
public LocationMapper(LocationMapper locMapper)
public void copyFrom(LocationMapper lmap2)
public String altMapping(String uri, String otherwise)
uri
- otherwise
- public void removeAltEntry(String uri)
public void removeAltPrefix(String uriPrefix)
public Model toModel()
public void toModel(Model model)
Licenced under the Apache License, Version 2.0