2013-11-20 52 views
0

是否有可能以某種方式匹配和分析轉換模板(CDT)中的字符串?Enterprise Architect中的字符串處理CDT

我有一個字符串:字典,我需要: 1)檢測THA字符串字典關鍵字 2)提取第二個參數開始 - >移

回答

0

排序與下面的代碼片段 - 它不是最優雅的方式,但給予約束的作品

$dic=%FIND(opReturnType,"Dictionary")% 

%If $dic!="-1"% 
$note="TODO://Replace: with java.util.Map " 
$note+=%opReturnType% 
$t=%opReturnType% 
$pos=%FIND($t,",")% 
$dict=%LEFT($t,$pos)% 
$ty=%REPLACE($t,$dict,"")% 
$typ=%TRIM_LEFT($ty,",")% 
$typp=%TRIM_RIGHT($typ,">")% 
$type=%TRIM($typp)% 
$lowerBound="0" 
$upperBound="*" 
%endIf%