本文整理汇总了Java中com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding类的典型用法代码示例。如果您正苦于以下问题:Java JAXWSBinding类的具体用法?Java JAXWSBinding怎么用?Java JAXWSBinding使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JAXWSBinding类属于com.sun.tools.internal.ws.wsdl.document.jaxws包,在下文中一共展示了JAXWSBinding类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: applyOperationNameCustomization
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
private boolean applyOperationNameCustomization() {
JAXWSBinding jaxwsCustomization = (JAXWSBinding) getExtensionOfType(info.portTypeOperation, JAXWSBinding.class);
String operationName = (jaxwsCustomization != null) ? ((jaxwsCustomization.getMethodName() != null) ? jaxwsCustomization.getMethodName().getName() : null) : null;
if (operationName != null) {
if (Names.isJavaReservedWord(operationName)) {
if (options.isExtensionMode()) {
warning(info.portTypeOperation, ModelerMessages.WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(info.operation.getName(), operationName));
} else {
error(info.portTypeOperation, ModelerMessages.WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(info.operation.getName(), operationName));
}
return false;
}
info.operation.setCustomizedName(operationName);
}
if (Names.isJavaReservedWord(info.operation.getJavaMethodName())) {
if (options.isExtensionMode()) {
warning(info.portTypeOperation, ModelerMessages.WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(info.operation.getName()));
} else {
error(info.portTypeOperation, ModelerMessages.WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(info.operation.getName()));
}
return false;
}
return true;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:WSDLModeler.java
示例2: setCustomizedParameterName
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
/**
* @param part
* @param param
* @param wrapperStyle TODO
*/
private void setCustomizedParameterName(TWSDLExtensible extension, Message msg, MessagePart part, Parameter param, boolean wrapperStyle) {
JAXWSBinding jaxwsBinding = (JAXWSBinding) getExtensionOfType(extension, JAXWSBinding.class);
if (jaxwsBinding == null) {
return;
}
String paramName = part.getName();
QName elementName = part.getDescriptor();
if (wrapperStyle) {
elementName = param.getType().getName();
}
String customName = jaxwsBinding.getParameterName(msg.getName(), paramName, elementName, wrapperStyle);
if (customName != null && !customName.equals("")) {
param.setCustomName(customName);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:WSDLModeler.java
示例3: applyPortMethodCustomization
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
/**
*
* @param port
* @param wsdlPort
*/
protected void applyPortMethodCustomization(Port port, com.sun.tools.internal.ws.wsdl.document.Port wsdlPort) {
if (isProvider(wsdlPort)) {
return;
}
JAXWSBinding jaxwsBinding = (JAXWSBinding)getExtensionOfType(wsdlPort, JAXWSBinding.class);
String portMethodName = (jaxwsBinding != null)?((jaxwsBinding.getMethodName() != null)?jaxwsBinding.getMethodName().getName():null):null;
if(portMethodName != null){
port.setPortGetter(portMethodName);
}else{
portMethodName = Names.getPortName(port);
portMethodName = BindingHelper.mangleNameToClassName(portMethodName);
port.setPortGetter("get"+portMethodName);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:22,代码来源:WSDLModelerBase.java
示例4: parseParameter
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的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
示例5: applyOperationNameCustomization
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
private boolean applyOperationNameCustomization() {
JAXWSBinding jaxwsCustomization = (JAXWSBinding) getExtensionOfType(info.portTypeOperation, JAXWSBinding.class);
String operationName = (jaxwsCustomization != null) ? ((jaxwsCustomization.getMethodName() != null) ? jaxwsCustomization.getMethodName().getName() : null) : null;
if (operationName != null) {
if (Names.isJavaReservedWord(operationName)) {
if (options.isExtensionMode())
warning(info.portTypeOperation, ModelerMessages.WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(info.operation.getName(), operationName));
else
error(info.portTypeOperation, ModelerMessages.WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(info.operation.getName(), operationName));
return false;
}
info.operation.setCustomizedName(operationName);
}
if (Names.isJavaReservedWord(info.operation.getJavaMethodName())) {
if (options.isExtensionMode())
warning(info.portTypeOperation, ModelerMessages.WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(info.operation.getName()));
else
error(info.portTypeOperation, ModelerMessages.WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(info.operation.getName()));
return false;
}
return true;
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:25,代码来源:WSDLModeler.java
示例6: applyPortMethodCustomization
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
/**
*
* @param port
* @param wsdlPort
*/
protected void applyPortMethodCustomization(Port port, com.sun.tools.internal.ws.wsdl.document.Port wsdlPort) {
if(isProvider(wsdlPort))
return;
JAXWSBinding jaxwsBinding = (JAXWSBinding)getExtensionOfType(wsdlPort, JAXWSBinding.class);
String portMethodName = (jaxwsBinding != null)?((jaxwsBinding.getMethodName() != null)?jaxwsBinding.getMethodName().getName():null):null;
if(portMethodName != null){
port.setPortGetter(portMethodName);
}else{
portMethodName = Names.getPortName(port);
portMethodName = JAXBRIContext.mangleNameToClassName(portMethodName);
port.setPortGetter("get"+portMethodName);
}
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:21,代码来源:WSDLModelerBase.java
示例7: parseParameter
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的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
示例8: getCustomizedOperationName
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
private String getCustomizedOperationName(Operation operation) {
JAXWSBinding jaxwsCustomization = (JAXWSBinding)getExtensionOfType(operation, JAXWSBinding.class);
String operationName = (jaxwsCustomization != null)?((jaxwsCustomization.getMethodName() != null)?jaxwsCustomization.getMethodName().getName():null):null;
if(operationName != null){
if(Names.isJavaReservedWord(operationName)){
return null;
}
return operationName;
}
return operation.getName();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:PseudoSchemaBuilder.java
示例9: getFaultClassName
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
private String getFaultClassName(com.sun.tools.internal.ws.wsdl.document.Fault portTypeFault) {
JAXWSBinding jaxwsBinding = (JAXWSBinding) getExtensionOfType(portTypeFault, JAXWSBinding.class);
if (jaxwsBinding != null) {
CustomName className = jaxwsBinding.getClassName();
if (className != null) {
return makePackageQualified(className.getName());
}
}
return makePackageQualified(BindingHelper.mangleNameToClassName(portTypeFault.getMessage().getLocalPart()));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:WSDLModeler.java
示例10: getJavaPackage
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
protected String getJavaPackage() {
String jaxwsPackage = null;
JAXWSBinding jaxwsCustomization = (JAXWSBinding) getExtensionOfType(document.getDefinitions(), JAXWSBinding.class);
if (jaxwsCustomization != null && jaxwsCustomization.getJaxwsPackage() != null) {
jaxwsPackage = jaxwsCustomization.getJaxwsPackage().getName();
}
if (jaxwsPackage != null) {
return jaxwsPackage;
}
String wsdlUri = document.getDefinitions().getTargetNamespaceURI();
return XJC.getDefaultPackageName(wsdlUri);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:WSDLModeler.java
示例11: getServiceInterfaceName
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
protected String getServiceInterfaceName(QName serviceQName, com.sun.tools.internal.ws.wsdl.document.Service wsdlService) {
String serviceName = wsdlService.getName();
JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(wsdlService, JAXWSBinding.class);
if (jaxwsCust != null && jaxwsCust.getClassName() != null) {
CustomName name = jaxwsCust.getClassName();
if (name != null && !name.getName().equals("")) {
return makePackageQualified(name.getName());
}
}
return makePackageQualified(BindingHelper.mangleNameToClassName(serviceName));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:WSDLModeler.java
示例12: getJavaNameOfSEI
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
protected String getJavaNameOfSEI(Port port) {
QName portTypeName =
(QName) port.getProperty(
ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME);
PortType pt = (PortType) document.find(Kinds.PORT_TYPE, portTypeName);
//populate the portType map here. We should get rid of all these properties
// lets not do it as it may break NB
//TODO: clean all these stuff part of NB RFE
port.portTypes.put(portTypeName, pt);
JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(pt, JAXWSBinding.class);
if (jaxwsCust != null && jaxwsCust.getClassName() != null) {
CustomName name = jaxwsCust.getClassName();
if (name != null && !name.getName().equals("")) {
return makePackageQualified(name.getName());
}
}
String interfaceName;
if (portTypeName != null) {
// got portType information from WSDL, use it to name the interface
interfaceName =
makePackageQualified(BindingHelper.mangleNameToClassName(portTypeName.getLocalPart()));
} else {
// somehow we only got the port name, so we use that
interfaceName =
makePackageQualified(BindingHelper.mangleNameToClassName(port.getName().getLocalPart()));
}
return interfaceName;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:30,代码来源:WSDLModeler.java
示例13: applyWrapperStyleCustomization
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
/**
* @param port
*/
private void applyWrapperStyleCustomization(Port port, PortType portType) {
JAXWSBinding jaxwsBinding = (JAXWSBinding) getExtensionOfType(portType, JAXWSBinding.class);
Boolean wrapperStyle = (jaxwsBinding != null) ? jaxwsBinding.isEnableWrapperStyle() : null;
if (wrapperStyle != null) {
port.setWrapped(wrapperStyle);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:WSDLModeler.java
示例14: getJAXWSExtension
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
private static JAXWSBinding getJAXWSExtension(TWSDLExtensible extensible) {
for (TWSDLExtension extension:extensible.extensions()) {
if (extension.getClass().equals(JAXWSBinding.class)) {
return (JAXWSBinding)extension;
}
}
return null;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:JAXWSBindingExtensionHandler.java
示例15: parseProvider
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
/**
* @param context
* @param parent
* @param e
*/
private void parseProvider(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding parent, Element e) {
String val = e.getTextContent();
if (val == null) {
return;
}
if (val.equals("false") || val.equals("0")) {
((JAXWSBinding)parent).setProvider(Boolean.FALSE);
} else if(val.equals("true") || val.equals("1")) {
((JAXWSBinding)parent).setProvider(Boolean.TRUE);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:JAXWSBindingExtensionHandler.java
示例16: parsePackage
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
/**
* @param context
* @param parent
* @param e
*/
private void parsePackage(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding parent, Element e) {
//System.out.println("In handlePackageExtension: " + e.getNodeName());
String packageName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR);
JAXWSBinding binding = (JAXWSBinding)parent;
binding.setJaxwsPackage(new CustomName(packageName, getJavaDoc(e)));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:JAXWSBindingExtensionHandler.java
示例17: parseWrapperStyle
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
/**
* @param context
* @param parent
* @param e
*/
private void parseWrapperStyle(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding parent, Element e) {
//System.out.println("In handleWrapperStyleExtension: " + e.getNodeName());
String val = e.getTextContent();
if (val == null) {
return;
}
if (val.equals("false") || val.equals("0")) {
((JAXWSBinding) parent).setEnableWrapperStyle(Boolean.FALSE);
} else if (val.equals("true") || val.equals("1")) {
((JAXWSBinding) parent).setEnableWrapperStyle(Boolean.TRUE);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:JAXWSBindingExtensionHandler.java
示例18: parseAsynMapping
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
/**
* @param context
* @param parent
* @param e
*/
private void parseAsynMapping(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding parent, Element e) {
//System.out.println("In handleAsynMappingExtension: " + e.getNodeName());
String val = e.getTextContent();
if (val == null) {
return;
}
if (val.equals("false") || val.equals("0")) {
((JAXWSBinding) parent).setEnableAsyncMapping(Boolean.FALSE);
} else if (val.equals("true") || val.equals("1")) {
((JAXWSBinding) parent).setEnableAsyncMapping(Boolean.TRUE);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:JAXWSBindingExtensionHandler.java
示例19: parseMimeContent
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
/**
* @param context
* @param parent
* @param e
*/
private void parseMimeContent(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding parent, Element e) {
//System.out.println("In handleMimeContentExtension: " + e.getNodeName());
String val = e.getTextContent();
if (val == null) {
return;
}
if (val.equals("false") || val.equals("0")) {
((JAXWSBinding) parent).setEnableMimeContentMapping(Boolean.FALSE);
} else if (val.equals("true") || val.equals("1")) {
((JAXWSBinding) parent).setEnableMimeContentMapping(Boolean.TRUE);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:JAXWSBindingExtensionHandler.java
示例20: parseMethod
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入依赖的package包/类
/**
* @param context
* @param jaxwsBinding
* @param e
*/
private void parseMethod(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) {
String methodName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR);
String javaDoc = getJavaDoc(e);
CustomName name = new CustomName(methodName, javaDoc);
jaxwsBinding.setMethodName(name);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:JAXWSBindingExtensionHandler.java
注:本文中的com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论