本文整理匯總了Java中net.sf.saxon.om.FingerprintedQName類的典型用法代碼示例。如果您正苦於以下問題:Java FingerprintedQName類的具體用法?Java FingerprintedQName怎麽用?Java FingerprintedQName使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
FingerprintedQName類屬於net.sf.saxon.om包,在下文中一共展示了FingerprintedQName類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: startElement
import net.sf.saxon.om.FingerprintedQName; //導入依賴的package包/類
@Override
public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException {
super.startElement(elemName, typeCode, location, properties);
attributes = new AttributeCollectionImpl(getConfiguration());
attributes.addAttribute(
new FingerprintedQName("", "", "test"),
AnySimpleType.getInstance(),
Long.toString(System.nanoTime()),
location,
properties);
}
示例2: startElem
import net.sf.saxon.om.FingerprintedQName; //導入依賴的package包/類
@Override
public void startElem(String localname) throws HttpClientException {
final String prefix = HttpConstants.HTTP_CLIENT_NS_PREFIX;
final String uri = HttpConstants.HTTP_CLIENT_NS_URI;
NodeName name = new FingerprintedQName(prefix, uri, localname);
try {
myBuilder.startElement(name, Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0);
} catch (XPathException ex) {
throw new HttpClientException("Error starting element on the Saxon tree builder", ex);
}
}