org.apache.xerces.impl.Version类的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(175)

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

Version介绍

[英]This class defines the version number of the parser.
[中]此类定义解析器的版本号。

代码示例

代码示例来源:origin: pentaho/mondrian

/**
 * Get the Xerces version being used.
 *
 * @return Xerces version being used
 */
public static String getXercesVersion() {
  try {
    return org.apache.xerces.impl.Version.getVersion();
  } catch (java.lang.NoClassDefFoundError ex) {
    return "Xerces-J 2.2.0";
  }
}

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

public String getVersion() {
  return new Version().getVersion();
}

代码示例来源:origin: net.sourceforge.nekohtml/com.springsource.org.cyberneko.html

public String getVersion() {
  return new Version().getVersion();
}

代码示例来源:origin: net.sourceforge.nekohtml/com.springsource.org.cyberneko.html

public String getVersion() {
  return Version.getVersion();
}

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

public String getVersion() {
  return Version.getVersion();
}

代码示例来源:origin: gwt-test-utils/gwt-test-utils

public String getVersion() {
  return Version.getVersion();
}

代码示例来源:origin: com.googlecode.gwt-test-utils/gwt-test-utils

public String getVersion() {
  return Version.getVersion();
}

代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator

/**
 * Create object that represents tool runtime environment.
 */
public ToolEnvironment()
{
 try
 {
  // FUTURE: made compatible with later versions of Xerces where getVersion
  // is no longer statically available.
  // xmlParserVersion = new org.apache.xerces.impl.Version().getVersion();
  xmlParserVersion = org.apache.xerces.impl.Version.getVersion();
  xmlParserName = "Apache Xerces";
 }
 catch (Exception e)
 {
  // ADD: How else can we get the name version number
 }
 catch (Error err)
 {
  // ADD: How else can we get the name version number
 }
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.wsi

/**
 * Create object that represents tool runtime environment.
 */
public ToolEnvironment()
{
 try
 {
  // FUTURE: made compatible with later versions of Xerces where getVersion
  // is no longer statically available.
  // xmlParserVersion = new org.apache.xerces.impl.Version().getVersion();
  xmlParserVersion = org.apache.xerces.impl.Version.getVersion();
  xmlParserName = "Apache Xerces";
 }
 catch (Exception e)
 {
  // ADD: How else can we get the name version number
 }
 catch (Error err)
 {
  // ADD: How else can we get the name version number
 }
}

代码示例来源:origin: org.opencms/opencms-setup

versionStr = Version.getVersion();
  xercesVersion = 2;
} catch (Throwable t) {

相关文章