01-10-2008 07:25 AM
01-21-2008 01:01 PM
01-22-2008 07:01 AM
01-22-2008 10:57 AM
01-23-2008 06:59 AM
public class MyHashMap<T1, T2> extends HashMap<T1, Object> {
@Override
public Object get(Object key) {
Object result = super.get(key);
if(result == null){
if(key instanceof String){
if(((String)key).contains
(UISearchCustomProperties.PREFIX_LOV_ITEM))
return new LinkedList<String>();
}
else
return result;
}
return result;
}
public MyHashMap(int i, float f) {
super(i, f);
}
}
else if (value != null)
{
Object item = this.customProperties.get(
UISearchCustomProperties.PREFIX_LOV_ITEM + qname);
if (item != null && !(item instanceof LinkedList))
{
// ListOfValues
if (((Boolean)value) == true)
{
if(item instanceof ArrayList){ // just for the safe side
search.addListValueQuery(QName.createQName(qname),
(ArrayList<String>)item);
}
else //we actually never get here
search.addFixedValueQuery(QName.createQName(qname),
item.toString());
}
}
else…//left unchanged
if (queryListValues.size() != 0)
{
for (QName qname : queryListValues.keySet())
{
flagSearchedProperty(qname);
String escapedName = Repository.escapeQName(qname);
ArrayList<String> valuesList = queryListValues.get(qname);
if(valuesList.size() != 0){
if (attributeQuery == null)
{
attributeQuery = new StringBuilder(queryListValues.size() << 6);
}
attributeQuery.append(" +(");
for(Iterator<String> iter = valuesList.iterator() ; iter.hasNext() ; )
{
String value = iter.next();
attributeQuery.append("@").append(escapedName)
.append(":\"").append(value).append('"');
if(iter.hasNext())
attributeQuery.append(" OR ");
}
attributeQuery.append(")");
}
}
}
02-22-2008 12:18 PM
02-25-2008 09:31 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.