Class SerializableEnumInteractionId<E extends Enum<E> & InteractionId>
java.lang.Object
org.openehealth.ipf.commons.ihe.core.SerializableEnumInteractionId<E>
- All Implemented Interfaces:
Serializable, InteractionId
public class SerializableEnumInteractionId<E extends Enum<E> & InteractionId>
extends Object
implements Serializable, InteractionId
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Enum<E> & InteractionId>
SerializableEnumInteractionId<E> create(E interactionId) Create a serializable version of the givenInteractionIdReturns the configuration of the transaction this interaction ID stands for, irrespective of the kind of transaction.
-
Method Details
-
create
public static <E extends Enum<E> & InteractionId> SerializableEnumInteractionId<E> create(E interactionId) Create a serializable version of the givenInteractionId- Type Parameters:
E- interaction ID type, which must be an enum- Parameters:
interactionId- interactionID- Returns:
- serializable version of the given
InteractionId
-
getInteractionId
- Returns:
- the (non-serializable) interactionId
-
getTransactionConfiguration
Description copied from interface:InteractionIdReturns the configuration of the transaction this interaction ID stands for, irrespective of the kind of transaction. Sub-interfaces provide a type-safe accessor of their own and override this method to delegate to it; this method exists for generic code that must not know which kind of transaction it is dealing with.- Specified by:
getTransactionConfigurationin interfaceInteractionId- Returns:
- the transaction configuration
-