/** * @see javax.xml.xpath.XPathFunction#evaluate(java.util.List) */ public Object evaluate(List args) throws XPathFunctionException { Vector argsVec = listToVector(args); try { // The method key and ExpressionContext are set to null. return m_handler.callFunction(m_funcName, argsVec, null, null); } catch (TransformerException e) { throw new XPathFunctionException(e); } }
ExtensionHandler.getClassForName(className); return new ExtensionNamespaceSupport( ns,
/** * Execute the element-available() function. * @param ns the URI of namespace in which the function is needed * @param elemName name of element being tested * * @return whether the given element is available or not. * * @throws javax.xml.transform.TransformerException */ public boolean elementAvailable(String ns, String elemName) throws javax.xml.transform.TransformerException { boolean isAvailable = false; if (null != ns) { ExtensionHandler extNS = (ExtensionHandler) m_extensionFunctionNamespaces.get(ns); if (extNS != null) // defensive isAvailable = extNS.isElementAvailable(elemName); } return isAvailable; }
/** * Execute the function-available() function. * @param ns the URI of namespace in which the function is needed * @param funcName the function name being tested * * @return whether the given function is available or not. * * @throws javax.xml.transform.TransformerException */ public boolean functionAvailable(String ns, String funcName) throws javax.xml.transform.TransformerException { boolean isAvailable = false; if (null != ns) { ExtensionHandler extNS = (ExtensionHandler) m_extensionFunctionNamespaces.get(ns); if (extNS != null) isAvailable = extNS.isFunctionAvailable(funcName); } return isAvailable; }
nsh.processElement(this.getLocalName(), this, transformer, getStylesheet(), this);
/** * Execute the function-available() function. * @param ns the URI of namespace in which the function is needed * @param funcName the function name being tested * * @return whether the given function is available or not. * * @throws javax.xml.transform.TransformerException */ public boolean functionAvailable(String ns, String funcName) throws javax.xml.transform.TransformerException { boolean isAvailable = false; if (null != ns) { ExtensionHandler extNS = (ExtensionHandler) m_extensionFunctionNamespaces.get(ns); if (extNS != null) isAvailable = extNS.isFunctionAvailable(funcName); } return isAvailable; }
nsh.processElement(this.getLocalName(), this, transformer, getStylesheet(), this);
ExtensionHandler.getClassForName(className); return new ExtensionNamespaceSupport( ns,
result = extNS.callFunction(funcName, argVec, methodKey, exprContext);
/** * Execute the element-available() function. * @param ns the URI of namespace in which the function is needed * @param elemName name of element being tested * * @return whether the given element is available or not. * * @throws javax.xml.transform.TransformerException */ public boolean elementAvailable(String ns, String elemName) throws javax.xml.transform.TransformerException { boolean isAvailable = false; if (null != ns) { ExtensionHandler extNS = (ExtensionHandler) m_extensionFunctionNamespaces.get(ns); if (extNS != null) // defensive isAvailable = extNS.isElementAvailable(elemName); } return isAvailable; }
/** * Execute the function-available() function. * @param ns the URI of namespace in which the function is needed * @param funcName the function name being tested * * @return whether the given function is available or not. * * @throws javax.xml.transform.TransformerException */ public boolean functionAvailable(String ns, String funcName) throws javax.xml.transform.TransformerException { boolean isAvailable = false; if (null != ns) { ExtensionHandler extNS = (ExtensionHandler) m_extensionFunctionNamespaces.get(ns); if (extNS != null) isAvailable = extNS.isFunctionAvailable(funcName); } return isAvailable; }
nsh.processElement(this.getLocalName(), this, transformer, getStylesheet(), this);
try Class cl = ExtensionHandler.getClassForName(m_handlerClass); Constructor con = null;
result = extNS.callFunction(funcName, argVec, methodKey, exprContext);
/** * Execute the element-available() function. * @param ns the URI of namespace in which the function is needed * @param elemName name of element being tested * * @return whether the given element is available or not. * * @throws javax.xml.transform.TransformerException */ public boolean elementAvailable(String ns, String elemName) throws javax.xml.transform.TransformerException { boolean isAvailable = false; if (null != ns) { ExtensionHandler extNS = (ExtensionHandler) m_extensionFunctionNamespaces.get(ns); if (extNS != null) // defensive isAvailable = extNS.isElementAvailable(elemName); } return isAvailable; }
/** * Execute the function-available() function. * @param ns the URI of namespace in which the function is needed * @param funcName the function name being tested * * @return whether the given function is available or not. * * @throws javax.xml.transform.TransformerException */ public boolean functionAvailable(String ns, String funcName) throws javax.xml.transform.TransformerException { boolean isAvailable = false; if (null != ns) { ExtensionHandler extNS = (ExtensionHandler) m_extensionFunctionNamespaces.get(ns); if (extNS != null) isAvailable = extNS.isFunctionAvailable(funcName); } return isAvailable; }
nsh.processElement(this.getLocalName(), this, transformer, getStylesheet(), this);
try Class cl = ExtensionHandler.getClassForName(m_handlerClass); Constructor con = null;
result = extNS.callFunction(extFunction, argVec, exprContext);
/** * Execute the element-available() function. * @param ns the URI of namespace in which the function is needed * @param elemName name of element being tested * * @return whether the given element is available or not. * * @throws javax.xml.transform.TransformerException */ public boolean elementAvailable(String ns, String elemName) throws javax.xml.transform.TransformerException { boolean isAvailable = false; if (null != ns) { ExtensionHandler extNS = (ExtensionHandler) m_extensionFunctionNamespaces.get(ns); if (extNS != null) // defensive isAvailable = extNS.isElementAvailable(elemName); } return isAvailable; }