eu.planets_project.ifr.core.techreg.formats
Interface FormatRegistry
public interface FormatRegistry
search
java.util.List<java.net.URI> search(java.lang.String query)
- Parameters:
query
- The query
- Returns:
- the List of URIs matching query
getUrisForExtension
java.util.Set<java.net.URI> getUrisForExtension(java.lang.String extension)
- Parameters:
extension
- The extension
- Returns:
- the Set of URIs for the passed extension
getUrisForMimeType
java.util.Set<java.net.URI> getUrisForMimeType(java.lang.String mime)
- Parameters:
mime
- The mime type
- Returns:
- the Set of URIs for the passed mimetype
getFormatUriAliases
java.util.List<java.net.URI> getFormatUriAliases(java.net.URI typeUri)
- This class looks up the different Format URIs consistent with the given
URI.
- Parameters:
typeUri
- The URI
- Returns:
- a List of format URIs consistent with the passed URI
getFormatAliases
java.util.List<Format> getFormatAliases(java.net.URI typeURI)
- Parameters:
typeURI
- The type URI
- Returns:
- All aliases (in other format types) for the given URI
getFormatForUri
Format getFormatForUri(java.net.URI puri)
- Parameters:
puri
- The Planets URI (see FormatRegistry)
- Returns:
- A format instance for the given URI
getExtensions
java.util.Set<java.lang.String> getExtensions(java.net.URI uri)
- Parameters:
uri
- The URI to find extensions for
- Returns:
- Extensions corresponding to the given URI
getFirstExtension
java.lang.String getFirstExtension(java.net.URI uri)
- Parameters:
uri
- The URI to find an extension for
- Returns:
- The first extension found corresponding to the given URI
createExtensionUri
java.net.URI createExtensionUri(java.lang.String extension)
- Parameters:
extension
- The simple file extension
- Returns:
- A URI representing the extension
createActionUri
java.net.URI createActionUri(java.lang.String action)
- Parameters:
action
- the action a modify service can perform (e.g.: "repair", "rotate", "crop" ...)
- Returns:
- a URI representing this action
createPronomUri
java.net.URI createPronomUri(java.lang.String pronom)
- Parameters:
pronom
- The pronom ID to create URI for, e.g. "fmt/101"
- Returns:
- A URI representing the given pronom ID
createMimeUri
java.net.URI createMimeUri(java.lang.String mime)
- Parameters:
mime
- The mime type to create a URI for
- Returns:
- A URI representing the given mime type
createAnyFormatUri
java.net.URI createAnyFormatUri()
- Returns:
- A URI representing any format.
createFolderTypeUri
java.net.URI createFolderTypeUri()
- Returns:
- a URI representing a folder.
createUnknownFormatUri
java.net.URI createUnknownFormatUri()
- Returns:
- A URI representing an unknown format.
isUriOfType
java.lang.Boolean isUriOfType(java.net.URI uri,
Format.UriType type)
- Parameters:
uri
- The URI to testtype
- The URI type to test for
- Returns:
- True, if the given URI is of the given type
getValueFromUri
java.lang.String getValueFromUri(java.net.URI uri)
- Parameters:
uri
- The URI
- Returns:
- The raw value the URI was created with or null
Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.