本文整理了Java中org.apache.xerces.impl.Version
类的一些代码示例,展示了Version
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version
类的具体详情如下:
包路径:org.apache.xerces.impl.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) {
内容来源于网络,如有侵权,请联系作者删除!