01: package com.teamkonzept.webman.mainint;
02:
03: import com.teamkonzept.field.*;
04: import com.teamkonzept.lib.*;
05:
06: public class TKContentAttributeOptionsIterator extends TKIteratorPlugin {
07:
08: TKContentAttributeOptionsIterator(String listName, TKHashtable list) {
09:
10: super (list, listName, true, new TKContentAttributeOption());
11: }
12:
13: public boolean applyThis(Object item, TKTemplate template,
14: String path) {
15:
16: if (item == null)
17: return false;
18:
19: TKContentAttributeOption option = (TKContentAttributeOption) item;
20:
21: template.set("ATTRIBUTE_OPTION_TYPE", new Integer(option.type));
22: template.set("ATTRIBUTE_OPTION_ID", new Integer(
23: option.attributeId));
24:
25: if (option.name != null)
26: template.set("ATTRIBUTE_OPTION_NAME", option.name);
27: if (option.typeInfo != null)
28: template.set("ATTRIBUTE_OPTION_TYPEINFO", option.typeInfo);
29:
30: return true;
31: }
32: }
|