javax.xml.xpath.XPathFactoryFinder._newFactory()方法的使用及代码示例

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

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

XPathFactoryFinder._newFactory介绍

[英]Lookup a XPathFactory for the given object model.
[中]查找给定对象模型的XPathFactory。

代码示例

代码示例来源:origin: robovm/robovm

  1. /**
  2. * <p>Creates a new {@link XPathFactory} object for the specified
  3. * schema language.</p>
  4. *
  5. * @param uri
  6. * Identifies the underlying object model.
  7. *
  8. * @return <code>null</code> if the callee fails to create one.
  9. *
  10. * @throws NullPointerException
  11. * If the parameter is null.
  12. */
  13. public XPathFactory newFactory(String uri) {
  14. if (uri == null) {
  15. throw new NullPointerException("uri == null");
  16. }
  17. XPathFactory f = _newFactory(uri);
  18. if (debug) {
  19. if (f != null) {
  20. debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri);
  21. } else {
  22. debugPrintln("unable to find a factory for " + uri);
  23. }
  24. }
  25. return f;
  26. }

代码示例来源:origin: javax.xml.parsers/jaxp-api

  1. /**
  2. * <p>Creates a new {@link XPathFactory} object for the specified
  3. * schema language.</p>
  4. *
  5. * @param uri
  6. * Identifies the underlying object model.
  7. *
  8. * @return <code>null</code> if the callee fails to create one.
  9. *
  10. * @throws NullPointerException
  11. * If the parameter is null.
  12. */
  13. public XPathFactory newFactory(String uri) {
  14. if(uri==null) throw new NullPointerException();
  15. XPathFactory f = _newFactory(uri);
  16. if (f != null) {
  17. debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri);
  18. } else {
  19. debugPrintln("unable to find a factory for " + uri);
  20. }
  21. return f;
  22. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * <p>Creates a new {@link XPathFactory} object for the specified
  3. * schema language.</p>
  4. *
  5. * @param uri
  6. * Identifies the underlying object model.
  7. *
  8. * @return <code>null</code> if the callee fails to create one.
  9. *
  10. * @throws NullPointerException
  11. * If the parameter is null.
  12. */
  13. public XPathFactory newFactory(String uri) {
  14. if (uri == null) {
  15. throw new NullPointerException("uri == null");
  16. }
  17. XPathFactory f = _newFactory(uri);
  18. if (debug) {
  19. if (f != null) {
  20. debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri);
  21. } else {
  22. debugPrintln("unable to find a factory for " + uri);
  23. }
  24. }
  25. return f;
  26. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * <p>Creates a new {@link XPathFactory} object for the specified
  3. * schema language.</p>
  4. *
  5. * @param uri
  6. * Identifies the underlying object model.
  7. *
  8. * @return <code>null</code> if the callee fails to create one.
  9. *
  10. * @throws NullPointerException
  11. * If the parameter is null.
  12. */
  13. public XPathFactory newFactory(String uri) {
  14. if (uri == null) {
  15. throw new NullPointerException("uri == null");
  16. }
  17. XPathFactory f = _newFactory(uri);
  18. if (debug) {
  19. if (f != null) {
  20. debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri);
  21. } else {
  22. debugPrintln("unable to find a factory for " + uri);
  23. }
  24. }
  25. return f;
  26. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * <p>Creates a new {@link XPathFactory} object for the specified
  3. * schema language.</p>
  4. *
  5. * @param uri
  6. * Identifies the underlying object model.
  7. *
  8. * @return <code>null</code> if the callee fails to create one.
  9. *
  10. * @throws NullPointerException
  11. * If the parameter is null.
  12. */
  13. public XPathFactory newFactory(String uri) {
  14. if (uri == null) {
  15. throw new NullPointerException("uri == null");
  16. }
  17. XPathFactory f = _newFactory(uri);
  18. if (debug) {
  19. if (f != null) {
  20. debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri);
  21. } else {
  22. debugPrintln("unable to find a factory for " + uri);
  23. }
  24. }
  25. return f;
  26. }

代码示例来源:origin: org.apache.servicemix.specs/org.apache.servicemix.specs.jaxp-api-1.4

  1. /**
  2. * <p>Creates a new {@link XPathFactory} object for the specified
  3. * schema language.</p>
  4. *
  5. * @param uri
  6. * Identifies the underlying object model.
  7. *
  8. * @return <code>null</code> if the callee fails to create one.
  9. *
  10. * @throws NullPointerException
  11. * If the parameter is null.
  12. */
  13. public XPathFactory newFactory(String uri) {
  14. if(uri==null) throw new NullPointerException();
  15. XPathFactory f = _newFactory(uri);
  16. if (debug) {
  17. if (f != null) {
  18. debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri);
  19. } else {
  20. debugPrintln("unable to find a factory for " + uri);
  21. }
  22. }
  23. return f;
  24. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * <p>Creates a new {@link XPathFactory} object for the specified
  3. * schema language.</p>
  4. *
  5. * @param uri
  6. * Identifies the underlying object model.
  7. *
  8. * @return <code>null</code> if the callee fails to create one.
  9. *
  10. * @throws NullPointerException
  11. * If the parameter is null.
  12. */
  13. public XPathFactory newFactory(String uri) {
  14. if (uri == null) {
  15. throw new NullPointerException("uri == null");
  16. }
  17. XPathFactory f = _newFactory(uri);
  18. if (debug) {
  19. if (f != null) {
  20. debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri);
  21. } else {
  22. debugPrintln("unable to find a factory for " + uri);
  23. }
  24. }
  25. return f;
  26. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * <p>Creates a new {@link XPathFactory} object for the specified
  3. * schema language.</p>
  4. *
  5. * @param uri
  6. * Identifies the underlying object model.
  7. *
  8. * @return <code>null</code> if the callee fails to create one.
  9. *
  10. * @throws NullPointerException
  11. * If the parameter is null.
  12. */
  13. public XPathFactory newFactory(String uri) {
  14. if (uri == null) {
  15. throw new NullPointerException("uri == null");
  16. }
  17. XPathFactory f = _newFactory(uri);
  18. if (debug) {
  19. if (f != null) {
  20. debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri);
  21. } else {
  22. debugPrintln("unable to find a factory for " + uri);
  23. }
  24. }
  25. return f;
  26. }

代码示例来源:origin: FlexoVM/flexovm

  1. /**
  2. * <p>Creates a new {@link XPathFactory} object for the specified
  3. * schema language.</p>
  4. *
  5. * @param uri
  6. * Identifies the underlying object model.
  7. *
  8. * @return <code>null</code> if the callee fails to create one.
  9. *
  10. * @throws NullPointerException
  11. * If the parameter is null.
  12. */
  13. public XPathFactory newFactory(String uri) {
  14. if (uri == null) {
  15. throw new NullPointerException("uri == null");
  16. }
  17. XPathFactory f = _newFactory(uri);
  18. if (debug) {
  19. if (f != null) {
  20. debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri);
  21. } else {
  22. debugPrintln("unable to find a factory for " + uri);
  23. }
  24. }
  25. return f;
  26. }

相关文章