ca.infoway.messagebuilder.marshalling
Class MessageBeanRegistry

Package class diagram package MessageBeanRegistry
java.lang.Object
  extended by ca.infoway.messagebuilder.marshalling.MessageBeanRegistry

public class MessageBeanRegistry
extends Object

A utility class that can be used to translate between Java model classes and their corresponding HL7 interactions or message parts.

This utility depends on two conventions:

First, every jar that contains generated model classes will include a Manifest file that has an attribute, MBT-Model-Version-Numbers, which lists the version numbers that the model classes are valid for.

Two, each message part class will have an annotation that describes the part type that it maps to.

Author:
Intelliware Development

Method Summary
 Collection<Class<?>> getAllMessageParts()
           
 Class<? extends Code> getCodeType(String domainType, String version)
           
static MessageBeanRegistry getInstance()
          Get the instance of the message bean registry.
 Class<? extends InteractionBean> getInteractionBeanType(MessageTypeKey key)
          Get the class for a particular interaction.
 Set<MessageTypeKey> getMessageTypeKeys()
          Get a collection of all message type keys that are contained in the registry.
 boolean isMessagePartDefined(VersionNumber version, String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MessageBeanRegistry getInstance()

Get the instance of the message bean registry.

Returns:
- the message bean registry instance

getCodeType

public Class<? extends Code> getCodeType(String domainType,
                                         String version)

getAllMessageParts

public Collection<Class<?>> getAllMessageParts()

getMessageTypeKeys

public Set<MessageTypeKey> getMessageTypeKeys()

Get a collection of all message type keys that are contained in the registry.

Returns:
- the collection of message type keys

getInteractionBeanType

public Class<? extends InteractionBean> getInteractionBeanType(MessageTypeKey key)

Get the class for a particular interaction.

Returns:
- the collection of message type keys

isMessagePartDefined

public boolean isMessagePartDefined(VersionNumber version,
                                    String type)


Copyright © 2013. All Rights Reserved.