1 5 14 package com.teamkonzept.lib.templates; 15 16 import java.io.*; 17 18 import com.teamkonzept.lib.*; 19 20 25 public class TKSetLocalTag extends TKValueTag { 26 public static final int TAG_TYPE = TKLocalTag.TAG_TYPE+1; 27 28 33 public TKSetLocalTag( TKTemplateSyntax parent, String name, boolean hasSubTags ) throws TKTemplateSyntaxException 34 { 35 super( parent, name, hasSubTags ); 36 } 37 38 42 public String apply( TKTemplateData td ) throws TKTemplateSyntaxException 43 { 44 String name = getName( td ); 45 String value = getValue( td ); 46 td.setLocalVariable( name, value ); 47 return ""; 48 } 49 50 public void apply(TKTemplateData td, Writer writer) 51 throws TKTemplateSyntaxException, IOException 52 { 53 String name = getName( td ); 54 String value = getValue( td ); 55 td.setLocalVariable( name, value ); 56 } 57 58 } 60 | Popular Tags |