edu.virginia.lib.ole.akubra
Class FilePrefixMapper
java.lang.Object
edu.virginia.lib.ole.akubra.FilePrefixMapper
- All Implemented Interfaces:
- org.akubraproject.map.IdMapper
public class FilePrefixMapper
- extends Object
- implements org.akubraproject.map.IdMapper
- Version:
- 1.0
- Author:
- ajs6f
- See Also:
IdMapper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilePrefixMapper
public FilePrefixMapper()
getExternalId
public URI getExternalId(URI internalId)
throws NullPointerException
- Specified by:
getExternalId
in interface org.akubraproject.map.IdMapper
- Parameters:
internalId
- internal ID of a blob in the mapped BlobStore
- Returns:
URI
external ID for this blob in the mapped BlobStore
- Throws:
NullPointerException
- See Also:
IdMapper.getExternalId(java.net.URI)
getInternalId
public URI getInternalId(URI externalId)
throws NullPointerException
- Specified by:
getInternalId
in interface org.akubraproject.map.IdMapper
- Parameters:
externalId
- external ID of a blob in the mapped BlobStore
- Returns:
URI
internal ID for this blob in the mapped BlobStore
- Throws:
NullPointerException
- See Also:
IdMapper.getInternalId(java.net.URI)
getInternalPrefix
public String getInternalPrefix(String externalPrefix)
throws NullPointerException
- Specified by:
getInternalPrefix
in interface org.akubraproject.map.IdMapper
- Parameters:
externalPrefix
- ignored
- Returns:
String
The URI prefix in use by this mapper, normally "file:"
- Throws:
NullPointerException
- See Also:
IdMapper.getInternalPrefix(java.lang.String)
Copyright © 2011 the University of Virginia Library :: OLE. All Rights Reserved.