gpt4 book ai didi

com.ibm.wsdl.util.xml.XPathUtils类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 06:24:40 26 4
gpt4 key购买 nike

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

XPathUtils介绍

[英]A XPathUtils ...
[中]AXPathUtils。。。

代码示例

代码示例来源:origin: wsdl4j/wsdl4j

public static void throwWSDLException(Element location) throws WSDLException
{
 String elName = QNameUtils.newQName(location).toString();
 WSDLException wsdlExc = new WSDLException(WSDLException.INVALID_WSDL,
                      "Encountered unexpected element '" +
                      elName + "'.");
 wsdlExc.setLocation(XPathUtils.getXPathExprFromNode(location));
 throw wsdlExc;
}

代码示例来源:origin: wsdl4j/wsdl4j

short  nodeType    = getNodeType(tempNode);
String targetValue = getValue(tempNode, nodeType);
int    position    = 1;
tempNode = getPreviousTypedNode(tempNode, nodeType);
  if (getValue(tempNode, nodeType).equals(targetValue))
 tempNode = getPreviousTypedNode(tempNode, nodeType);
 tempNode = getNextTypedNode(tempNode, nodeType);
   if (getValue(tempNode, nodeType).equals(targetValue))
    tempNode = getNextTypedNode(tempNode, nodeType);

代码示例来源:origin: wsdl4j/wsdl4j

throws IllegalArgumentException
short nodeType = getNodeType(node);
 case Node.TEXT_NODE :
 case Node.PROCESSING_INSTRUCTION_NODE :
  return getXPathFromVector(getVectorPathFromNode(node));

代码示例来源:origin: wsdl4j/wsdl4j

private static void checkElementName(Element el, QName qname)
 throws WSDLException
{
 if (!QNameUtils.matches(qname, el))
 {
  WSDLException wsdlExc = new WSDLException(WSDLException.INVALID_WSDL,
                       "Expected element '" +
                       qname + "'.");
  wsdlExc.setLocation(XPathUtils.getXPathExprFromNode(el));
  throw wsdlExc;
 }
}

代码示例来源:origin: org.wso2.wsdl4j/wsdl4j

short  nodeType    = getNodeType(tempNode);
String targetValue = getValue(tempNode, nodeType);
int    position    = 1;
tempNode = getPreviousTypedNode(tempNode, nodeType);
  if (getValue(tempNode, nodeType).equals(targetValue))
 tempNode = getPreviousTypedNode(tempNode, nodeType);
 tempNode = getNextTypedNode(tempNode, nodeType);
   if (getValue(tempNode, nodeType).equals(targetValue))
    tempNode = getNextTypedNode(tempNode, nodeType);

代码示例来源:origin: org.wso2.wsdl4j/wsdl4j

throws IllegalArgumentException
short nodeType = getNodeType(node);
 case Node.TEXT_NODE :
 case Node.PROCESSING_INSTRUCTION_NODE :
  return getXPathFromVector(getVectorPathFromNode(node));

代码示例来源:origin: wsdl4j/wsdl4j

public static QName getQName(String prefixedValue,
               Element contextEl,
               Definition def)
                throws WSDLException
{
 int    index        = prefixedValue.indexOf(':');
 String prefix       = (index != -1)
            ? prefixedValue.substring(0, index)
            : null;
 String localPart    = prefixedValue.substring(index + 1);
 String namespaceURI = getNamespaceURIFromPrefix(contextEl, prefix);
 if (namespaceURI != null)
 {
  registerUniquePrefix(prefix, namespaceURI, def);
  return new QName(namespaceURI, localPart);
 }
 else
 {
  String faultCode = (prefix == null)
            ? WSDLException.NO_PREFIX_SPECIFIED
            : WSDLException.UNBOUND_PREFIX;
  WSDLException wsdlExc = new WSDLException(faultCode,
                       "Unable to determine " +
                       "namespace of '" +
                       prefixedValue + "'.");
  wsdlExc.setLocation(XPathUtils.getXPathExprFromNode(contextEl));
  throw wsdlExc;
 }
}

代码示例来源:origin: wsdl4j/wsdl4j

"WSDL's.");
wsdlExc.setLocation(XPathUtils.getXPathExprFromNode(el));

代码示例来源:origin: wsdl4j/wsdl4j

e.setLocation(XPathUtils.getXPathExprFromNode(el));

代码示例来源:origin: wsdl4j/wsdl4j

e.setLocation(XPathUtils.getXPathExprFromNode(el));

代码示例来源:origin: wsdl4j/wsdl4j

e.setLocation(XPathUtils.getXPathExprFromNode(el));

代码示例来源:origin: wsdl4j/wsdl4j

elDesc + " element.");
wsdlExc.setLocation(XPathUtils.getXPathExprFromNode(el));

代码示例来源:origin: wsdl4j/wsdl4j

elDesc + " element.");
wsdlExc.setLocation(XPathUtils.getXPathExprFromNode(el));

代码示例来源:origin: wsdl4j/wsdl4j

e.setLocation(XPathUtils.getXPathExprFromNode(importEl));
String loc = XPathUtils.getXPathExprFromNode(importEl) + e.getLocation();
e.setLocation(loc);

代码示例来源:origin: wsdl4j/wsdl4j

e.setLocation(XPathUtils.getXPathExprFromNode(tempEl));

代码示例来源:origin: wsdl4j/wsdl4j

e.setLocation(XPathUtils.getXPathExprFromNode(el));
String loc = XPathUtils.getXPathExprFromNode(el) + e.getLocation();
e.setLocation(loc);

代码示例来源:origin: org.wso2.wsdl4j/wsdl4j

public static void throwWSDLException(Element location) throws WSDLException
{
 String elName = QNameUtils.newQName(location).toString();
 WSDLException wsdlExc = new WSDLException(WSDLException.INVALID_WSDL,
                      "Encountered unexpected element '" +
                      elName + "'.");
 wsdlExc.setLocation(XPathUtils.getXPathExprFromNode(location));
 throw wsdlExc;
}

代码示例来源:origin: org.wso2.wsdl4j/wsdl4j

private static void checkElementName(Element el, QName qname)
 throws WSDLException
{
 if (!QNameUtils.matches(qname, el))
 {
  WSDLException wsdlExc = new WSDLException(WSDLException.INVALID_WSDL,
                       "Expected element '" +
                       qname + "'.");
  wsdlExc.setLocation(XPathUtils.getXPathExprFromNode(el));
  throw wsdlExc;
 }
}

代码示例来源:origin: org.jboss.ws.native/jbossws-native-core

private static void checkElementName(Element el, QName qname)
    throws WSDLException
{
  if (!QNameUtils.matches(qname, el))
  {
    WSDLException wsdlExc = new WSDLException(WSDLException.INVALID_WSDL,
        "Expected element '" +
            qname + "'.");
    wsdlExc.setLocation(XPathUtils.getXPathExprFromNode(el));
    throw wsdlExc;
  }
}

代码示例来源:origin: org.wso2.wsdl4j/wsdl4j

public static QName getQName(String prefixedValue,
               Element contextEl,
               Definition def)
                throws WSDLException
{
 int    index        = prefixedValue.indexOf(':');
 String prefix       = (index != -1)
            ? prefixedValue.substring(0, index)
            : null;
 String localPart    = prefixedValue.substring(index + 1);
 String namespaceURI = getNamespaceURIFromPrefix(contextEl, prefix);
 if (namespaceURI != null)
 {
  registerUniquePrefix(prefix, namespaceURI, def);
  return new QName(namespaceURI, localPart);
 }
 else
 {
  String faultCode = (prefix == null)
            ? WSDLException.NO_PREFIX_SPECIFIED
            : WSDLException.UNBOUND_PREFIX;
  WSDLException wsdlExc = new WSDLException(faultCode,
                       "Unable to determine " +
                       "namespace of '" +
                       prefixedValue + "'.");
  wsdlExc.setLocation(XPathUtils.getXPathExprFromNode(contextEl));
  throw wsdlExc;
 }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com