KickJava   Java API By Example, From Geeks To Geeks.

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


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: ElemOtherwise.java,v 1.8 2004/02/16 20:32:32 minchau Exp $
18  */

19 package org.apache.xalan.templates;
20
21
22 /**
23  * Implement xsl:otherwise.
24  * <pre>
25  * <!ELEMENT xsl:otherwise %template;>
26  * <!ATTLIST xsl:otherwise %space-att;>
27  * </pre>
28  * @see <a HREF="http://www.w3.org/TR/xslt#section-Conditional-Processing-with-xsl:choose">XXX in XSLT Specification</a>
29  * @xsl.usage advanced
30  */

31 public class ElemOtherwise extends ElemTemplateElement
32 {
33
34   /**
35    * Get an int constant identifying the type of element.
36    * @see org.apache.xalan.templates.Constants
37    *
38    * @return The token ID for this element
39    */

40   public int getXSLToken()
41   {
42     return Constants.ELEMNAME_OTHERWISE;
43   }
44
45   /**
46    * Return the node name.
47    *
48    * @return The element's name
49    */

50   public String JavaDoc getNodeName()
51   {
52     return Constants.ELEMNAME_OTHERWISE_STRING;
53   }
54 }
55
Popular Tags