In below code
queryCmisAdvance.getAdvanceKeywords()
returns ArrayList of class AdvancePropertyKeywords
In Class AdvancePropertyKeywords
there are Three Parameter String Property Name , condition and value.
Some time it is possible that value can be "" (and this is not null)
and now i want to retrive the propertyName whose value is not "" .
My code
for(AdvancePropertyKeywords apk : queryCmisAdvance.getAdvanceKeywords()){
if (apk.getValue()!="" ) {
System.out.println(apk.getPropertyName() +" " +apk.getCondition() + " "+apk.getValue());
}
}
outPut
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 ""