net.sf.saxon.xpath.XPathFactoryImpl.silentIsObjectModelSupported()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(101)

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

XPathFactoryImpl.silentIsObjectModelSupported介绍

暂无

代码示例

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

/**
 * Test whether a given object model is supported. Returns true if the object model
 * is the Saxon object model, DOM, JDOM, DOM4J, or XOM
 *
 * @param model The URI identifying the object model.
 * @return true if the object model is one of the following (provided that the supporting
 *         JAR file is available on the classpath)
 *         {@link net.sf.saxon.lib.NamespaceConstant#OBJECT_MODEL_SAXON},
 *         {@link XPathConstants#DOM_OBJECT_MODEL},
 *         {@link net.sf.saxon.lib.NamespaceConstant#OBJECT_MODEL_JDOM}, or
 *         {@link NamespaceConstant#OBJECT_MODEL_XOM}, or
 *         {@link net.sf.saxon.lib.NamespaceConstant#OBJECT_MODEL_DOM4J}.
 *         Saxon also allows user-defined external object models to be registered with the Configuration, and
 *         this method will return true in respect of any such model.
 */
public boolean isObjectModelSupported(String model) {
  boolean debug = System.getProperty("jaxp.debug") != null;
  boolean result = silentIsObjectModelSupported(model);
  if (debug) {
    System.err.println("JAXP: Calling " + getClass().getName() + ".isObjectModelSupported(\"" + model + "\")");
    System.err.println("JAXP: -- returning " + (result ? "true" : "false (check all required libraries are on the class path"));
  }
  return result;
}

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

/**
 * Test whether a given object model is supported. Returns true if the object model
 * is the Saxon object model, DOM, JDOM, DOM4J, or XOM
 *
 * @param model The URI identifying the object model.
 * @return true if the object model is one of the following (provided that the supporting
 *         JAR file is available on the classpath)
 *         {@link net.sf.saxon.lib.NamespaceConstant#OBJECT_MODEL_SAXON},
 *         {@link XPathConstants#DOM_OBJECT_MODEL},
 *         {@link net.sf.saxon.lib.NamespaceConstant#OBJECT_MODEL_JDOM}, or
 *         {@link NamespaceConstant#OBJECT_MODEL_XOM}, or
 *         {@link net.sf.saxon.lib.NamespaceConstant#OBJECT_MODEL_DOM4J}.
 *         Saxon also allows user-defined external object models to be registered with the Configuration, and
 *         this method will return true in respect of any such model.
 */
public boolean isObjectModelSupported(String model) {
  boolean debug = System.getProperty("jaxp.debug") != null;
  boolean result = silentIsObjectModelSupported(model);
  if (debug) {
    System.err.println("JAXP: Calling " + getClass().getName() + ".isObjectModelSupported(\"" + model + "\")");
    System.err.println("JAXP: -- returning " + (result ? "true" : "false (check all required libraries are on the class path"));
  }
  return result;
}

相关文章