01: /*
02: * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/lib/templates/TKTagTag.java,v 1.7 2001/08/14 13:55:20 mischa Exp $
03: *
04: */
05: /**
06: *
07: *
08: * Aufbau: name="TK_CLASSNAME[par_name;class_name:class_value;...]" value="..."
09: * ------------ ----------
10: * primaere Klasse Sekundaere Klasse
11: *
12: * Bsp: name="TK_EV[THE_EVENT;QOR:0.8_0.5]" value="..."
13: */package com.teamkonzept.lib.templates;
14:
15: import com.oroinc.text.regex.*;
16:
17: import com.teamkonzept.lib.*;
18:
19: /**
20: * Ein TK_Tag wird aus dem Template gefiltert
21: * @author $Author: mischa $
22: * @version $Revision: 1.7 $
23: */
24: public class TKTagTag extends TKTagTagBase {
25:
26: static final int TAG_TYPE = TKAtomTagTag.TAG_TYPE + 1;
27:
28: public int tagType() {
29: return TAG_TYPE;
30: };
31:
32: public TKTagTag(TKTemplateSyntax parent, String def,
33: PatternMatcherInput matcherInput, boolean hasSubTags)
34: throws TKTemplateSyntaxException {
35: super (parent, def, hasSubTags);
36:
37: try {
38: argumentText = parent.newChild(matcherInput, parent
39: .getSource());
40: } catch (ArrayIndexOutOfBoundsException e) { //thrown by TKTemplateSyntax.newTag()
41: throw new TKTemplateSyntaxException(parent.getSource(),
42: "NOEND", "TAG", def);
43: }
44: checkError(argumentText, "TAG", def);
45: }
46:
47: }//end class
|