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 listName, TKHashtable list) { 9 10 super (list,listName,true,new TKContentAttributeOption ()); 11 } 12 13 public boolean applyThis (Object item, TKTemplate template, String path) { 14 15 if (item == null) return false; 16 17 TKContentAttributeOption option = (TKContentAttributeOption) item; 18 19 template.set( "ATTRIBUTE_OPTION_TYPE", new Integer (option.type)); 20 template.set( "ATTRIBUTE_OPTION_ID", new Integer (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 |