178179180181182183184185186187188
public void assertValidity(final Field testField) throws ValidationException { super.assertValidity(testField); Group thisGroup = testField.getGroup(); if (testField.isMultiValued()) { String[] stringValues = (String[])testField.getTestValue();
176177178179180181182183184185186
514515516517518519520521522523524
* @throws IntakeException if recycling fails. */ public Group getGroup(String groupName) throws IntakeException { Group group = null; AppData appData = (AppData) groupNames.get(groupName); if (groupName == null) {
130131132133134135136137138139140141
if ( foundGroups != null ) { Iterator iter = foundGroups.iterator(); while (iter.hasNext()) { Group group = (Group)iter.next(); groups.put(group.getObjectKey(), group); } } } catch(Exception e) {
315316317318319320321322323324
{ boolean allValid = true; Iterator iter = groups.values().iterator(); while (iter.hasNext()) { Group group = (Group)iter.next(); allValid &= group.isAllValid(); } return allValid; }
355356357358359360361362363
public void removeAll() { Object[] allGroups = groups.values().toArray(); for (int i=allGroups.length-1; i>=0; i-- ) { Group group = (Group)allGroups[i]; remove(group); } }
390391392393394395396397398399400
public void dispose() { Iterator iter = groups.values().iterator(); while ( iter.hasNext() ) { Group g = (Group)iter.next(); TurbineIntake.releaseGroup(g); } groups.clear(); declaredGroups.clear();
246247248249250251252253254255256257258259260261262263264265266
} public Group setKey(String key, boolean create) throws Exception { Group g = null; String inputKey = TurbineIntake.getGroupKey(groupName) + key; if ( groups.containsKey(inputKey)) { g = (Group)groups.get(inputKey); } else if (create) { g = TurbineIntake.getGroup(groupName); groups.put(inputKey, g); g.init(key, data); } return g; }
276277278279280281282283284285286287288289290291292293294295296297298299300301
*/ public Group mapTo(Retrievable obj) throws Exception { Group g = null; try { String inputKey = TurbineIntake.getGroupKey(groupName) + obj.getQueryKey(); if ( groups.containsKey(inputKey)) { g = (Group)groups.get(inputKey); } else { g = TurbineIntake.getGroup(groupName); groups.put(inputKey, g); } return g.init(obj); } catch(Exception e) { Log.error(e); }
134135136137138139140141142143144145