//
SearchAttributeSet[] sets = new SearchAttributeSet[gkey_pfid.size()];
for( i = 0; i < sets.length; i++ )
{
sets[i] = new SearchAttributeSet();
sets[i].setProductFinderID(Integer.parseInt((String)rgPFID[i]));
}
//
Object[] keys = request.keySet().toArray();
for(i = 0; i < keys.length; i++ )
{
String key = (String) keys[i];
if (!key.startsWith(A))
continue;
String skey = key.substring(A.length());
String aid, groupKey;
int us_idx = skey.indexOf(US);
if( us_idx != -1 )
{
aid = skey.substring(0, us_idx);
groupKey = skey.substring(us_idx);
}
else
{
aid = skey;
groupKey = "";
}
String valStr = ((String[])request.get(key))[0];
Object objPFID = findValueByStringKey(gkey_pfid, groupKey);
if( objPFID == null )
throw new SdkException("Invalid group key.");
SearchAttributeSet set = findAttributeSetByPFID(sets, Integer.parseInt((String)objPFID));
SearchAttribute attr = new SearchAttribute();
attr.setAttributeID(Integer.parseInt(aid));
Value val = new Value();
val.setValueID(new Integer(valStr));
attr.addValue(val);
set.add(attr);
}
return sets;
}