FunctionDef1Arg.java revision 286
0N/A * reserved comment block 0N/A * DO NOT REMOVE OR ALTER! 0N/A * Copyright 1999-2004 The Apache Software Foundation. 0N/A * Licensed under the Apache License, Version 2.0 (the "License"); 0N/A * you may not use this file except in compliance with the License. 0N/A * You may obtain a copy of the License at 0N/A * Unless required by applicable law or agreed to in writing, software 0N/A * distributed under the License is distributed on an "AS IS" BASIS, 0N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0N/A * See the License for the specific language governing permissions and 2362N/A * limitations under the License. 0N/A * Base class for functions that accept one argument that can be defaulted if 0N/A * @xsl.usage advanced 0N/A * Execute the first argument expression that is expected to return a 0N/A * nodeset. If the argument is null, then return the current context node. 0N/A * @param xctxt Runtime XPath context. 0N/A * @return The first node of the executed nodeset, or the current context 0N/A * node if the first argument is null. 0N/A * @throws javax.xml.transform.TransformerException if an error occurs while 0N/A * executing the argument expression. 0N/A * Tell if the expression is a nodeset expression. 0N/A * @return true if the expression can be represented as a nodeset. 0N/A * Execute the first argument expression that is expected to return a 0N/A * string. If the argument is null, then get the string value from the 0N/A * current context node. 0N/A * @param xctxt Runtime XPath context. 0N/A * @return The string value of the first argument, or the string value of the 0N/A * current context node if the first argument is null. 0N/A * @throws javax.xml.transform.TransformerException if an error occurs while 0N/A * executing the argument expression. 0N/A * Execute the first argument expression that is expected to return a 0N/A * number. If the argument is null, then get the number value from the 0N/A * current context node. 0N/A * @param xctxt Runtime XPath context. 0N/A * @return The number value of the first argument, or the number value of the 0N/A * current context node if the first argument is null. 0N/A * @throws javax.xml.transform.TransformerException if an error occurs while 1178N/A * executing the argument expression. 0N/A * Check that the number of arguments passed to this function is correct. * @param argNum The number of arguments that is being passed to the function. * @throws WrongNumberArgsException if the number of arguments is not 0 or 1. * Constructs and throws a WrongNumberArgException with the appropriate * message for this function object. * @throws WrongNumberArgsException * Tell if this expression or it's subexpressions can traverse outside * @return true if traversal outside the context node's subtree can occur.