ca.infoway.messagebuilder.xml
Class MessagePartVersionSuffixHelper

Package class diagram package MessagePartVersionSuffixHelper
java.lang.Object
  extended by ca.infoway.messagebuilder.xml.MessagePartVersionSuffixHelper

public class MessagePartVersionSuffixHelper
extends Object

A utility helper used to compare message part type names while ignoring a version suffix.

Author:
Intelliware Development

Constructor Summary
MessagePartVersionSuffixHelper()
           
 
Method Summary
static boolean matchesDisregardingVersionSuffix(String type, List<String> messagePartNames)
          Compare two message part types, while ignoring the suffix.
static boolean matchesDisregardingVersionSuffix(String type, String hl7PartType)
          Compare two message part type names, while ignoring the suffix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagePartVersionSuffixHelper

public MessagePartVersionSuffixHelper()
Method Detail

matchesDisregardingVersionSuffix

public static boolean matchesDisregardingVersionSuffix(String type,
                                                       List<String> messagePartNames)

Compare two message part types, while ignoring the suffix.

Parameters:
type - = the type name
messagePartNames - - a list of message part names to compare against
Returns:
true if a match is found; false otherwise

matchesDisregardingVersionSuffix

public static boolean matchesDisregardingVersionSuffix(String type,
                                                       String hl7PartType)

Compare two message part type names, while ignoring the suffix.

Parameters:
type - = the type name
hl7PartType - - the type to compare against
Returns:
true if a match is found; false otherwise


Copyright © 2013. All Rights Reserved.