06-28-2010 11:26 AM
<aspect name="st:myAspect">
<title>Custom Model</title>
<properties>
<property name="st:header">
<type>d:text</type>
<multiple>true</multiple>
</property>
<property name="st:paragraph">
<type>d:text</type>
<multiple>true</multiple>
</property>
</properties>
</aspect>
NamedValue namedvalue[] = new NamedValue[multiMetaDataMap.size()];
Set<String> set = multiMetaDataMap.keySet();
Iterator<String> it = set.iterator();
int i = 0;
while (it.hasNext()) {
String key = it.next();
System.out.println(key+": ");
for(String str : multiMetaDataMap.get(key))
{
System.out.print(str);
System.out.println();
}
namedvalue[i] = Utils.createNamedValue(key, multiMetaDataMap.get(key));
namedvalue[i].setIsMultiValue(true);
i++;
}
where multiMetaDataMap is a HashMap of String key and and String [] value.
String[] headerArr = namedValue.getValues();
for(int h =0; h<headerArr.length;h++){
System.out.println("Header"+h+": "+headerArr[h]);
}
here headerArr is coming as null.
String headerArr = namedValue.getValue();
System.out.println("Header: "+headerArr);
I am getting something like this.[195, 205, 309, 361, 533, 523, 533, 538, 527, 684, 698, 691, 608, 582, 648, 687, 682, 680, 675, 842, 830, 864, 972, 1028, 1194, 1195, 1186, 1145]
07-19-2010 11:49 PM
07-19-2010 11:56 PM
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.