001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the "License"); 007 * you may not use this file except in compliance with the License. 008 * You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018 /* 019 * $Id: ElemExtensionScript.java 468643 2006-10-28 06:56:03Z minchau $ 020 */ 021 package org.apache.xalan.templates; 022 023 /** 024 * Implement Script extension element 025 * @xsl.usage internal 026 */ 027 public class ElemExtensionScript extends ElemTemplateElement 028 { 029 static final long serialVersionUID = -6995978265966057744L; 030 031 /** 032 * Constructor ElemExtensionScript 033 * 034 */ 035 public ElemExtensionScript() 036 { 037 038 // System.out.println("ElemExtensionScript ctor"); 039 } 040 041 /** Language used in extension. 042 * @serial */ 043 private String m_lang = null; 044 045 /** 046 * Set language used by extension 047 * 048 * 049 * @param v Language used by extension 050 */ 051 public void setLang(String v) 052 { 053 m_lang = v; 054 } 055 056 /** 057 * Get language used by extension 058 * 059 * 060 * @return Language used by extension 061 */ 062 public String getLang() 063 { 064 return m_lang; 065 } 066 067 /** Extension handler. 068 * @serial */ 069 private String m_src = null; 070 071 /** 072 * Set Extension handler name for this extension 073 * 074 * 075 * @param v Extension handler name to set 076 */ 077 public void setSrc(String v) 078 { 079 m_src = v; 080 } 081 082 /** 083 * Get Extension handler name for this extension 084 * 085 * 086 * @return Extension handler name 087 */ 088 public String getSrc() 089 { 090 return m_src; 091 } 092 093 /** 094 * Get an int constant identifying the type of element. 095 * @see org.apache.xalan.templates.Constants 096 * 097 * @return The token ID for this element 098 */ 099 public int getXSLToken() 100 { 101 return Constants.ELEMNAME_EXTENSIONSCRIPT; 102 } 103 }