本文整理了Java中com.ctc.wstx.compat.QNameCreator类的一些代码示例,展示了QNameCreator类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QNameCreator类的具体详情如下:包路径:com.ctc.wstx.compat.QNameCreator类名称:QNameCreator
QNameCreator介绍
[英]Helper class used to solve [WSTX-174]: some older AppServers were shipped with incompatible version of QName class, which is missing the 3 argument constructor. To address this, we'll use bit of ClassLoader hacker to gracefully (?) downgrade to using 2 arg alternatives if necessary.
Note: choice of java.util.logging logging is only based on the fact that it is guaranteed to be present (we have JDK 1.4 baseline requirement) so that we do not add external dependencies. It is not a recommendation for using JUL per se; most users would do well to just use slf4j or log4j directly instead.[中]用于解决[WSTX-174]问题的Helper类:一些较旧的AppServer附带了不兼容版本的QName类,该类缺少3参数构造函数。为了解决这个问题,我们将使用一点ClassLoader hacker来优雅地(?)如有必要,降级为使用2个arg替代方案。注:选择java。util。日志记录只基于这样一个事实:它保证存在(我们有JDK 1.4基线要求),这样我们就不会添加外部依赖项。这不是使用JUL本身的建议;大多数用户最好直接使用slf4j或log4j。
代码示例
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
protected QName createQName(String nsURI, String localName, String prefix) { // [WSTX-174]: some old app servers missing 3-arg QName ctor return QNameCreator.create(nsURI, localName, prefix);}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public QName getName() { return QNameCreator.create(mURI, mLocalName, mPrefix);}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
return mLastName;QName n = QNameCreator.create(nsURI, ln, prefix);mLastName = n;return n;
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public QName getQName(){ if (mPrefix == null) { if (mNamespaceURI == null) { return new QName(mLocalName); } return new QName(mNamespaceURI, mLocalName); } String uri = mNamespaceURI; if (uri == null) { // Some QName impls (older JDKs) don't like nulls uri = ""; } // For [WSTX-174] need to use indirection: return QNameCreator.create(uri, mLocalName, mPrefix);}
代码示例来源:origin: Nextdoor/bender
@Overrideprotected QName createQName(String nsURI, String localName, String prefix) { // [WSTX-174]: some old app servers missing 3-arg QName ctor return QNameCreator.create(nsURI, localName, prefix);}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
@Overrideprotected QName createQName(String nsURI, String localName, String prefix) { // [WSTX-174]: some old app servers missing 3-arg QName ctor return QNameCreator.create(nsURI, localName, prefix);}
代码示例来源:origin: FasterXML/woodstox
@Overrideprotected QName createQName(String nsURI, String localName, String prefix) { // [WSTX-174]: some old app servers missing 3-arg QName ctor return QNameCreator.create(nsURI, localName, prefix);}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
protected QName createQName(String nsURI, String localName, String prefix) { // [WSTX-174]: some old app servers missing 3-arg QName ctor return QNameCreator.create(nsURI, localName, prefix);}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
public QName getName() { return QNameCreator.create(mURI, mLocalName, mPrefix);}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
public QName getName() { return QNameCreator.create(mURI, mLocalName, mPrefix);}
代码示例来源:origin: Nextdoor/bender
public QName getName() { return QNameCreator.create(mURI, mLocalName, mPrefix);}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
public QName getName() { return QNameCreator.create(mURI, mLocalName, mPrefix);}
代码示例来源:origin: FasterXML/woodstox
public QName getName() { return QNameCreator.create(mURI, mLocalName, mPrefix);}
代码示例来源:origin: Nextdoor/bender
return mLastName;QName n = QNameCreator.create(nsURI, ln, prefix);mLastName = n;return n;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
return mLastName;QName n = QNameCreator.create(nsURI, ln, prefix);mLastName = n;return n;
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
return mLastName;QName n = QNameCreator.create(nsURI, ln, prefix);mLastName = n;return n;
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
return mLastName;QName n = QNameCreator.create(nsURI, ln, prefix);mLastName = n;return n;
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
public QName getQName(){ if (mPrefix == null) { if (mNamespaceURI == null) { return new QName(mLocalName); } return new QName(mNamespaceURI, mLocalName); } String uri = mNamespaceURI; if (uri == null) { // Some QName impls (older JDKs) don't like nulls uri = ""; } // For [WSTX-174] need to use indirection: return QNameCreator.create(uri, mLocalName, mPrefix);}
代码示例来源:origin: FasterXML/woodstox
return mLastName;QName n = QNameCreator.create(nsURI, ln, prefix);mLastName = n;return n;
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
public QName getQName(){ if (mPrefix == null) { if (mNamespaceURI == null) { return new QName(mLocalName); } return new QName(mNamespaceURI, mLocalName); } String uri = mNamespaceURI; if (uri == null) { // Some QName impls (older JDKs) don't like nulls uri = ""; } // For [WSTX-174] need to use indirection: return QNameCreator.create(uri, mLocalName, mPrefix);}【文章出处:阜宁网页设计公司 http://www.1234xp.com/funing.html 网络转载请说明出处】