public int getLineNumber(long locationId) { return getLineNumber(); }
public int getLineNumber(long locationId) { return getLineNumber(); }
/** * Register a user-defined XQuery function * @param function the function to be registered * @throws XPathException if there is an existing function with the same name and arity */ public void declareFunction(XQueryFunction function) throws XPathException { String keyObj = function.getIdentificationKey(); XQueryFunction existing = (XQueryFunction)functions.get(keyObj); if (existing != null) { XPathException err = new XPathException("Duplicate definition of function " + function.getDisplayName() + " (see line " + existing.getLineNumber() + " in " + existing.getSystemId() + ')'); err.setErrorCode("XQST0034"); err.setIsStaticError(true); err.setLocator(function); throw err; } functions.put(keyObj, function); }
/** * Register a user-defined XQuery function * @param function the function to be registered * @throws XPathException if there is an existing function with the same name and arity */ public void declareFunction(XQueryFunction function) throws XPathException { String keyObj = function.getIdentificationKey(); XQueryFunction existing = (XQueryFunction)functions.get(keyObj); if (existing != null) { XPathException err = new XPathException("Duplicate definition of function " + function.getDisplayName() + " (see line " + existing.getLineNumber() + " in " + existing.getSystemId() + ')'); err.setErrorCode("XQST0034"); err.setIsStaticError(true); err.setLocator(function); throw err; } functions.put(keyObj, function); }
/** * Register a user-defined XQuery function * * @param function the function to be registered * @throws XPathException if there is an existing function with the same name and arity */ public void declareFunction(/*@NotNull*/ XQueryFunction function) throws XPathException { SymbolicName keyObj = function.getIdentificationKey(); XQueryFunction existing = functions.get(keyObj); if (existing == function) { return; } if (existing != null) { XPathException err = new XPathException("Duplicate definition of function " + function.getDisplayName() + " (see line " + existing.getLineNumber() + " in " + existing.getSystemId() + ')'); err.setErrorCode("XQST0034"); err.setIsStaticError(true); err.setLocator(function); throw err; } functions.put(keyObj, function); }
/** * Register a user-defined XQuery function * * @param function the function to be registered * @throws XPathException if there is an existing function with the same name and arity */ public void declareFunction(/*@NotNull*/ XQueryFunction function) throws XPathException { SymbolicName keyObj = function.getIdentificationKey(); XQueryFunction existing = functions.get(keyObj); if (existing == function) { return; } if (existing != null) { XPathException err = new XPathException("Duplicate definition of function " + function.getDisplayName() + " (see line " + existing.getLineNumber() + " in " + existing.getSystemId() + ')'); err.setErrorCode("XQST0034"); err.setIsStaticError(true); err.setLocator(function); throw err; } functions.put(keyObj, function); }