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

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

本文整理了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

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

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

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

相关文章