Package org.somda.sdc.glue.common.uri
Class ParticipantKeyPurposeMapper
- java.lang.Object
-
- org.somda.sdc.glue.common.uri.ParticipantKeyPurposeMapper
-
public class ParticipantKeyPurposeMapper extends Object
Utility class to map between Participant Key Purpose URIs and OIDs.This class implements the grammar defined in IEEE 11073-20701 section 9.3.
-
-
Constructor Summary
Constructors Constructor Description ParticipantKeyPurposeMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringfromOid(Oid oid)Creates a Participant Key Purpose URI out of an OID.static OidfromUri(String uri)Creates an OID given a Participant Key Purpose encoded URI.
-
-
-
Method Detail
-
fromOid
public static String fromOid(Oid oid) throws UriMapperGenerationArgumentException
Creates a Participant Key Purpose URI out of an OID.- Parameters:
oid- the OID to convert.- Returns:
- the converted URI.
- Throws:
UriMapperGenerationArgumentException- in case no valid URI could be generated from the input.
-
fromUri
public static Oid fromUri(String uri) throws UriMapperParsingException
Creates an OID given a Participant Key Purpose encoded URI.- Parameters:
uri- the URI to convert.- Returns:
- the converted OID.
- Throws:
UriMapperParsingException- in case no valid URI was given.
-
-