KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xalan > templates > ElemExtensionScript


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 /*
17  * $Id: ElemExtensionScript.java,v 1.8 2004/02/16 20:32:32 minchau Exp $
18  */

19 package org.apache.xalan.templates;
20
21 /**
22  * Implement Script extension element
23  * @xsl.usage internal
24  */

25 public class ElemExtensionScript extends ElemTemplateElement
26 {
27
28   /**
29    * Constructor ElemExtensionScript
30    *
31    */

32   public ElemExtensionScript()
33   {
34
35     // System.out.println("ElemExtensionScript ctor");
36
}
37
38   /** Language used in extension.
39    * @serial */

40   private String JavaDoc m_lang = null;
41
42   /**
43    * Set language used by extension
44    *
45    *
46    * @param v Language used by extension
47    */

48   public void setLang(String JavaDoc v)
49   {
50     m_lang = v;
51   }
52
53   /**
54    * Get language used by extension
55    *
56    *
57    * @return Language used by extension
58    */

59   public String JavaDoc getLang()
60   {
61     return m_lang;
62   }
63
64   /** Extension handler.
65    * @serial */

66   private String JavaDoc m_src = null;
67
68   /**
69    * Set Extension handler name for this extension
70    *
71    *
72    * @param v Extension handler name to set
73    */

74   public void setSrc(String JavaDoc v)
75   {
76     m_src = v;
77   }
78
79   /**
80    * Get Extension handler name for this extension
81    *
82    *
83    * @return Extension handler name
84    */

85   public String JavaDoc getSrc()
86   {
87     return m_src;
88   }
89
90   /**
91    * Get an int constant identifying the type of element.
92    * @see org.apache.xalan.templates.Constants
93    *
94    * @return The token ID for this element
95    */

96   public int getXSLToken()
97   {
98     return Constants.ELEMNAME_EXTENSIONSCRIPT;
99   }
100 }
101
Popular Tags