KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > lib > templates > TKTagTag


1 /*
2  * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/lib/templates/TKTagTag.java,v 1.7 2001/08/14 13:55:20 mischa Exp $
3  *
4  */

5 /**
6  *
7  *
8  * Aufbau: name="TK_CLASSNAME[par_name;class_name:class_value;...]" value="..."
9  * ------------ ----------
10  * primaere Klasse Sekundaere Klasse
11  *
12  * Bsp: name="TK_EV[THE_EVENT;QOR:0.8_0.5]" value="..."
13  */

14 package com.teamkonzept.lib.templates;
15
16 import com.oroinc.text.regex.*;
17
18 import com.teamkonzept.lib.*;
19
20 /**
21  * Ein TK_Tag wird aus dem Template gefiltert
22  * @author $Author: mischa $
23  * @version $Revision: 1.7 $
24  */

25 public class TKTagTag extends TKTagTagBase {
26     
27     static final int TAG_TYPE = TKAtomTagTag.TAG_TYPE+1;
28
29     public int tagType () { return TAG_TYPE; };
30
31     public TKTagTag( TKTemplateSyntax parent, String JavaDoc def, PatternMatcherInput matcherInput, boolean hasSubTags ) throws TKTemplateSyntaxException
32     {
33         super (parent,def,hasSubTags);
34
35         try {
36             argumentText = parent.newChild( matcherInput, parent.getSource() );
37         }
38         catch (ArrayIndexOutOfBoundsException JavaDoc e) { //thrown by TKTemplateSyntax.newTag()
39
throw new TKTemplateSyntaxException(parent.getSource(),"NOEND","TAG", def);
40         }
41         checkError(argumentText,"TAG", def);
42     }
43     
44 }//end class
45

46
Popular Tags