org.apache.xmlbeans.QNameSet.forWildcardNamespaceString()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(101)

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

QNameSet.forWildcardNamespaceString介绍

[英]Returns a QNameSet corresponding to the given wildcard namespace string. This is a space-separated list of URIs, plus special tokens as specified in the XML Schema specification (##any, ##other, ##targetNamespace, ##local).
[中]返回与给定通配符命名空间字符串对应的QNameSet。这是一个以空格分隔的URI列表,以及XML模式规范中指定的特殊标记(#any、#other、#targetNamespace、#local)。

代码示例

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

wcset = QNameSet.ALL;
else
  wcset = QNameSet.forWildcardNamespaceString(nslist.getStringValue(), targetNamespace);
sPart.setWildcardSet(wcset);
sPart.setWildcardProcess(translateWildcardProcess(parseAny.xgetProcessContents()));

代码示例来源:origin: net.sf.wsag4j.rest/wsag4j-rest-server

@Override
public void advertise( AdvertiseInputDocument input )
  throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
{
  NegotiationOfferType[] offers = input.getAdvertiseInput().getNegotiationOfferArray();
  QNameSet others =
    QNameSet.forWildcardNamespaceString( "##other",
      NegotiateInputDocument.type.getDocumentElementName().getNamespaceURI() );
  XmlObject[] noncritical = input.getAdvertiseInput().selectChildren( others );
  getNegotiation().advertise( offers, noncritical );
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

else
  nsText = nsList.getStringValue();
QNameSet wcset = QNameSet.forWildcardNamespaceString(nsText, targetNamespace);

代码示例来源:origin: net.sf.wsag4j.rest/wsag4j-rest-server

@Override
public URI initiateNegotiation( InitiateNegotiationInputDocument input )
  throws NegotiationFactoryException, ResourceUnknownException, ResourceUnavailableException
{
  NegotiationContextType context = input.getInitiateNegotiationInput().getNegotiationContext();
  NoncriticalExtensionType[] noncriticalExtensions =
    input.getInitiateNegotiationInput().getNoncriticalExtensionArray();
  String namespaceURI =
    InitiateNegotiationOutputDocument.type.getDocumentElementName().getNamespaceURI();
  QNameSet qNameSet = QNameSet.forWildcardNamespaceString( "##other", namespaceURI );
  XmlObject[] criticalExtensions = input.getInitiateNegotiationInput().selectChildren( qNameSet );
  Negotiation negotiation =
    getFactory().initiateNegotiation( context, criticalExtensions, noncriticalExtensions,
      new HashMap<String, Object>() );
  String uuid = RestNegotiationRegistry.add( negotiation );
  URI negotiationUri = getUriBuilder().clone().path( uuid ).build();
  return negotiationUri;
}

代码示例来源:origin: net.sf.wsag4j.rest/wsag4j-rest-server

@Override
public NegotiateOutputDocument negotiate( NegotiateInputDocument input )
  throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
{
  NegotiationOfferType[] offers = input.getNegotiateInput().getNegotiationOfferArray();
  QNameSet others =
    QNameSet.forWildcardNamespaceString( "##other",
      NegotiateInputDocument.type.getDocumentElementName().getNamespaceURI() );
  XmlObject[] noncritical = input.getNegotiateInput().selectChildren( others );
  NegotiationOfferType[] counterOffers = getNegotiation().negotiate( offers, noncritical );
  NegotiateOutputDocument output = NegotiateOutputDocument.Factory.newInstance();
  output.addNewNegotiateOutput().setNegotiationCounterOfferArray( counterOffers );
  return output;
}

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

wcset = QNameSet.ALL;
else
  wcset = QNameSet.forWildcardNamespaceString(nslist.getStringValue(), targetNamespace);
sPart.setWildcardSet(wcset);
sPart.setWildcardProcess(translateWildcardProcess(parseAny.xgetProcessContents()));

代码示例来源:origin: com.github.pjfanning/xmlbeans

wcset = QNameSet.ALL;
else
  wcset = QNameSet.forWildcardNamespaceString(nslist.getStringValue(), targetNamespace);
sPart.setWildcardSet(wcset);
sPart.setWildcardProcess(translateWildcardProcess(parseAny.xgetProcessContents()));

代码示例来源:origin: com.github.pjfanning/xmlbeans

else
  nsText = nsList.getStringValue();
QNameSet wcset = QNameSet.forWildcardNamespaceString(nsText, targetNamespace);

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

else
  nsText = nsList.getStringValue();
QNameSet wcset = QNameSet.forWildcardNamespaceString(nsText, targetNamespace);

相关文章