public static String computeId ( String recordType , NaaccrDictionary baseDictionary , Collection < NaaccrDictionary > userDictionaries ) { if ( baseDictionary == null ) return recordType ; StringBuilder buf = new StringBuilder ( recordType ) ; buf . append ( ";" ) . append ( baseDictionary . getDictionaryUri ( ) ) ; if ( userDictionaries != null ) for ( NaaccrDictionary userDictionary : userDictionaries ) if ( userDictionary != null ) buf . append ( ";" ) . append ( userDictionary . getDictionaryUri ( ) ) ; return buf . toString ( ) ; }
Helper method to compute an ID for a runtime dictionary based on the URI of its base and user dictionaries .