本文整理汇总了Java中com.sun.tools.internal.ws.wsdl.document.jaxws.Parameter类的典型用法代码示例。如果您正苦于以下问题:Java Parameter类的具体用法?Java Parameter怎么用?Java Parameter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Parameter类属于com.sun.tools.internal.ws.wsdl.document.jaxws包,在下文中一共展示了Parameter类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: parseParameter
import com.sun.tools.internal.ws.wsdl.document.jaxws.Parameter; //导入依赖的package包/类
/**
* @param context
* @param jaxwsBinding
* @param e
*/
private void parseParameter(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) {
String part = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.PART_ATTR);
Element msgPartElm = evaluateXPathNode(e.getOwnerDocument(), part, new NamespaceContextImpl(e));
Node msgElm = msgPartElm.getParentNode();
//MessagePart msgPart = new MessagePart();
String partName = XmlUtil.getAttributeOrNull(msgPartElm, "name");
String msgName = XmlUtil.getAttributeOrNull((Element)msgElm, "name");
if ((partName == null) || (msgName == null)) {
return;
}
String element = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.ELEMENT_ATTR);
String name = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR);
QName elementName = null;
if(element != null){
String uri = e.lookupNamespaceURI(XmlUtil.getPrefix(element));
elementName = (uri == null)?null:new QName(uri, XmlUtil.getLocalPart(element));
}
jaxwsBinding.addParameter(new Parameter(msgName, partName, elementName, name));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:29,代码来源:JAXWSBindingExtensionHandler.java
示例2: parseParameter
import com.sun.tools.internal.ws.wsdl.document.jaxws.Parameter; //导入依赖的package包/类
/**
* @param context
* @param jaxwsBinding
* @param e
*/
private void parseParameter(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) {
String part = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.PART_ATTR);
Element msgPartElm = evaluateXPathNode(e.getOwnerDocument(), part, new NamespaceContextImpl(e));
Node msgElm = msgPartElm.getParentNode();
//MessagePart msgPart = new MessagePart();
String partName = XmlUtil.getAttributeOrNull(msgPartElm, "name");
String msgName = XmlUtil.getAttributeOrNull((Element)msgElm, "name");
if((partName == null) || (msgName == null))
return;
String val = XmlUtil.getAttributeOrNull(msgPartElm, "element");
String element = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.ELEMENT_ATTR);
String name = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR);
QName elementName = null;
if(element != null){
String uri = e.lookupNamespaceURI(XmlUtil.getPrefix(element));
elementName = (uri == null)?null:new QName(uri, XmlUtil.getLocalPart(element));
}
jaxwsBinding.addParameter(new Parameter(msgName, partName, elementName, name));
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:30,代码来源:JAXWSBindingExtensionHandler.java
注:本文中的com.sun.tools.internal.ws.wsdl.document.jaxws.Parameter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论