KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > webman > mainint > TKContentAttributeOptionsIterator


1 package com.teamkonzept.webman.mainint;
2
3 import com.teamkonzept.field.*;
4 import com.teamkonzept.lib.*;
5
6 public class TKContentAttributeOptionsIterator extends TKIteratorPlugin {
7
8     TKContentAttributeOptionsIterator (String JavaDoc listName, TKHashtable list) {
9
10         super (list,listName,true,new TKContentAttributeOption ());
11     }
12     
13     public boolean applyThis (Object JavaDoc item, TKTemplate template, String JavaDoc path) {
14
15         if (item == null) return false;
16         
17         TKContentAttributeOption option = (TKContentAttributeOption) item;
18         
19         template.set( "ATTRIBUTE_OPTION_TYPE", new Integer JavaDoc(option.type));
20         template.set( "ATTRIBUTE_OPTION_ID", new Integer JavaDoc(option.attributeId));
21
22         if (option.name != null) template.set( "ATTRIBUTE_OPTION_NAME", option.name);
23         if (option.typeInfo != null) template.set( "ATTRIBUTE_OPTION_TYPEINFO", option.typeInfo);
24
25         return true;
26     }
27 }
28
Popular Tags