1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 /* 19 * $Id: ElemExtensionScript.java 468643 2006-10-28 06:56:03Z minchau $ 20 */ 21 package org.apache.xalan.templates; 22 23 /** 24 * Implement Script extension element 25 * @xsl.usage internal 26 */ 27 public class ElemExtensionScript extends ElemTemplateElement 28 { 29 static final long serialVersionUID = -6995978265966057744L; 30 31 /** 32 * Constructor ElemExtensionScript 33 * 34 */ ElemExtensionScript()35 public ElemExtensionScript() 36 { 37 38 // System.out.println("ElemExtensionScript ctor"); 39 } 40 41 /** Language used in extension. 42 * @serial */ 43 private String m_lang = null; 44 45 /** 46 * Set language used by extension 47 * 48 * 49 * @param v Language used by extension 50 */ setLang(String v)51 public void setLang(String v) 52 { 53 m_lang = v; 54 } 55 56 /** 57 * Get language used by extension 58 * 59 * 60 * @return Language used by extension 61 */ getLang()62 public String getLang() 63 { 64 return m_lang; 65 } 66 67 /** Extension handler. 68 * @serial */ 69 private String m_src = null; 70 71 /** 72 * Set Extension handler name for this extension 73 * 74 * 75 * @param v Extension handler name to set 76 */ setSrc(String v)77 public void setSrc(String v) 78 { 79 m_src = v; 80 } 81 82 /** 83 * Get Extension handler name for this extension 84 * 85 * 86 * @return Extension handler name 87 */ getSrc()88 public String getSrc() 89 { 90 return m_src; 91 } 92 93 /** 94 * Get an int constant identifying the type of element. 95 * @see org.apache.xalan.templates.Constants 96 * 97 * @return The token ID for this element 98 */ getXSLToken()99 public int getXSLToken() 100 { 101 return Constants.ELEMNAME_EXTENSIONSCRIPT; 102 } 103 } 104