1 5 package com.teamkonzept.lib.templates; 6 7 import java.io.*; 8 9 import com.teamkonzept.lib.*; 10 11 15 public class TKSetTag extends TKValueTag { 16 public static final int TAG_TYPE = TKSetLocalTag.TAG_TYPE+1; 17 18 23 public TKSetTag( TKTemplateSyntax parent, String name, boolean hasSubTags ) throws TKTemplateSyntaxException 24 { 25 super( parent, name, hasSubTags ); 26 } 27 28 public String apply( TKTemplateData td ) throws TKTemplateSyntaxException 29 { 30 String name = getName( td ); 31 String value = getValue( td ); 32 td.setVariable( name, value ); 33 return ""; 34 } 35 36 public void apply(TKTemplateData td, Writer writer) 37 throws TKTemplateSyntaxException, IOException 38 { 39 String name = getName( td ); 40 String value = getValue( td ); 41 td.setVariable( name, value ); 42 } 43 44 } 46 | Popular Tags |