Class AbstractUriMapper
java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.translation.AbstractUriMapper
- All Implemented Interfaces:
UriMapper
- Direct Known Subclasses:
DefaultUriMapper, NamingSystemUriMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmapNamespaceToUri(String namespace) Translate a namespace into an URI.mapOidToUri(String oid) Translate a OID into an URI.mapUriToNamespace(String uri) Translate a non-URN URI (e.g. a URL) into an OIDmapUriToOid(String uri) Translate a non-URN URI (e.g. a URL) into an OIDnamespaceToUri(String namespace) Translates an Namespace into an URI.Translates an OID into an URI.uriToNamespace(String uri) Translates an URI into a Namespace.Translates an URI into an OID.
-
Constructor Details
-
AbstractUriMapper
public AbstractUriMapper()
-
-
Method Details
-
uriToOid
Description copied from interface:UriMapperTranslates an URI into an OID. If the URI is an (OID) URN, the namespace-specific part should, be used as the OID. -
uriToNamespace
-
oidToUri
Description copied from interface:UriMapperTranslates an OID into an URI. Instead of a real mapping, an URN can be derived from the OID (i.e. urn:oid:1.2.3.4), but in general the inverse mapping toUriMapper.uriToOid(String)should be applied. -
namespaceToUri
Description copied from interface:UriMapperTranslates an Namespace into an URI. Instead of a real mapping, an URN can be derived from the namespace (i.e. urn:pin:namespace), but in general the inverse mapping toUriMapper.uriToNamespace(String)(String)} should be applied.- Specified by:
namespaceToUriin interfaceUriMapper- Parameters:
namespace- the namespace- Returns:
- the mapped URI
-
mapUriToOid
-
mapUriToNamespace
-
mapOidToUri
-
mapNamespaceToUri
-