在下面的代码中
queryCmisAdvance.getAdvanceKeywords()
返回类 AdvancePropertyKeywords 的 ArrayList
在类 AdvancePropertyKeywords
有三个参数String Property Name , condition and value.
有时值可能是“”(这不是空的)
现在我想检索值不是 "" 的 propertyName 。
我的代码
for(AdvancePropertyKeywords apk : queryCmisAdvance.getAdvanceKeywords()){
if (apk.getValue()!="" ) {
System.out.println(apk.getPropertyName() +" " +apk.getCondition() + " "+apk.getValue());
}
}
输出
From =
SentOn > Wed Aug 22 12:00:00 UTC+2 2012
EmailSubject LIKE folder
DocumentTitle NULL rgftre
CarbonCopy LIKE
From value is ""
SentOn value is Wed Aug 22 12:00:00 UTC+2 2012
EmailSubject value is folder
DocumentTitle value is rgftre
CarbonCopy value is ""