ca.infoway.messagebuilder.xml.service
Class CompositeMessageDefinitionService

Package class diagram package CompositeMessageDefinitionService
java.lang.Object
  extended by ca.infoway.messagebuilder.xml.service.CompositeMessageDefinitionService
All Implemented Interfaces:
MessageDefinitionService

public class CompositeMessageDefinitionService
extends Object
implements MessageDefinitionService

A message definition service that combines the results of other message defintion services.

Author:
Intelliware Development

Constructor Summary
CompositeMessageDefinitionService(List<MessageDefinitionService> services)
          Standard constructor.
 
Method Summary
 List<Interaction> getAllInteractions(boolean includeDuplicateInteractionsWithChangedBusinessNames)
          Get all interactions across all versions.
 List<Interaction> getAllInteractions(VersionNumber version)
          Get all interactions for a particular version of the specification.
 Map<String,MessagePart> getAllMessageParts(Interaction interaction, VersionNumber version)
          Get all the message parts for a particular interaction and version.
 Map<String,MessagePart> getAllRelatedMessageParts(MessagePart messagePart, VersionNumber version)
          Get all the message parts that a particular root message part references.
 List<MessagePart> getAllRootMessageParts()
          Get all the root message parts for all message sets.
 List<MessagePart> getAllRootMessageParts(VersionNumber version)
          Get all the root message parts for a specific message set.
 Interaction getInteraction(VersionNumber version, String type)
          Get an interaction by name and version.
 MessagePart getMessagePart(VersionNumber version, String type)
          Get a message part by name and version.
 Set<String> getSupportedVersions()
          Get all the versions known by this service.
 Set<String> getSupportedVersionsForInteraction(String type)
          Get all the versions for a particular interaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeMessageDefinitionService

public CompositeMessageDefinitionService(List<MessageDefinitionService> services)

Standard constructor.

Parameters:
services - - the constituent services whose results are being consolidated.
Method Detail

getInteraction

public Interaction getInteraction(VersionNumber version,
                                  String type)

Get an interaction by name and version.

Specified by:
getInteraction in interface MessageDefinitionService
Parameters:
version - - the version
type - - the type name
Returns:
the interaction

getMessagePart

public MessagePart getMessagePart(VersionNumber version,
                                  String type)

Get a message part by name and version.

Specified by:
getMessagePart in interface MessageDefinitionService
Parameters:
version - - the version
type - - the type name
Returns:
the message part

getAllInteractions

public List<Interaction> getAllInteractions(boolean includeDuplicateInteractionsWithChangedBusinessNames)

Get all interactions across all versions.

Specified by:
getAllInteractions in interface MessageDefinitionService
Parameters:
includeDuplicateInteractionsWithChangedBusinessNames - - a flag indicating whether or not to include duplicates
Returns:
the interactions

getAllInteractions

public List<Interaction> getAllInteractions(VersionNumber version)

Get all interactions for a particular version of the specification.

Specified by:
getAllInteractions in interface MessageDefinitionService
Parameters:
version - - the version
Returns:
the interactions

getSupportedVersions

public Set<String> getSupportedVersions()

Get all the versions known by this service.

Specified by:
getSupportedVersions in interface MessageDefinitionService
Returns:
the versions

getSupportedVersionsForInteraction

public Set<String> getSupportedVersionsForInteraction(String type)

Get all the versions for a particular interaction.

Specified by:
getSupportedVersionsForInteraction in interface MessageDefinitionService
Parameters:
type - - the type name of the interaction
Returns:
the versions

getAllMessageParts

public Map<String,MessagePart> getAllMessageParts(Interaction interaction,
                                                  VersionNumber version)

Get all the message parts for a particular interaction and version.

Specified by:
getAllMessageParts in interface MessageDefinitionService
Parameters:
interaction - - the interaction
version - - the version
Returns:
- the message parts

getAllRelatedMessageParts

public Map<String,MessagePart> getAllRelatedMessageParts(MessagePart messagePart,
                                                         VersionNumber version)

Get all the message parts that a particular root message part references. Currently this method is unimplemented.

Specified by:
getAllRelatedMessageParts in interface MessageDefinitionService
Parameters:
messagePart - - the messagePart
version - - the version
Returns:
- the message parts

getAllRootMessageParts

public List<MessagePart> getAllRootMessageParts()

Get all the root message parts for all message sets. Currently this method is unimplemented.

Specified by:
getAllRootMessageParts in interface MessageDefinitionService
Returns:
- the message parts

getAllRootMessageParts

public List<MessagePart> getAllRootMessageParts(VersionNumber version)
Description copied from interface: MessageDefinitionService

Get all the root message parts for a specific message set.

Specified by:
getAllRootMessageParts in interface MessageDefinitionService
Returns:
- the message parts


Copyright © 2013. All Rights Reserved.