gpt4 book ai didi

net.sf.saxon.query.XQueryFunction.getSystemId()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 07:37:05 25 4
gpt4 key购买 nike

本文整理了Java中net.sf.saxon.query.XQueryFunction.getSystemId()方法的一些代码示例,展示了XQueryFunction.getSystemId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XQueryFunction.getSystemId()方法的具体详情如下:
包路径:net.sf.saxon.query.XQueryFunction
类名称:XQueryFunction
方法名:getSystemId

XQueryFunction.getSystemId介绍

[英]Get the system identifier (URI) of the source module containing the instruction. This will generally be an absolute URI. If the system identifier is not known, the method may return null. In some cases, for example where XML external entities are used, the correct system identifier is not always retained.
[中]获取包含指令的源模块的系统标识符(URI)。这通常是一个绝对URI。如果系统标识符未知,则该方法可能返回null。在某些情况下,例如在使用XML外部实体的情况下,并不总是保留正确的系统标识符。

代码示例

代码示例来源:origin: net.sourceforge.saxon/saxon

public String getSystemId(long locationId) {
  return getSystemId();
}

代码示例来源:origin: org.opengis.cite.saxon/saxon9

public String getSystemId(long locationId) {
  return getSystemId();
}

代码示例来源:origin: org.opengis.cite.saxon/saxon9

/**
 * 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);
}

代码示例来源:origin: net.sourceforge.saxon/saxon

/**
 * 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);
}

代码示例来源:origin: net.sf.saxon/Saxon-HE

/**
 * 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);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon

/**
 * 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);
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com