本文整理汇总了Java中com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding.getMethodName方法的典型用法代码示例。如果您正苦于以下问题:Java JAXWSBinding.getMethodName方法的具体用法?Java JAXWSBinding.getMethodName怎么用?Java JAXWSBinding.getMethodName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding
的用法示例。
在下文中一共展示了JAXWSBinding.getMethodName方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例2: 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);
}
}
示例3: 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;
}
示例4: 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);
}
}
示例5: 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();
}
示例6: handlePortTypeOperation
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入方法依赖的package包/类
private boolean handlePortTypeOperation(TWSDLParserContext context, Operation parent, Element e) {
context.push();
context.registerNamespaces(e);
JAXWSBinding jaxwsBinding = new JAXWSBinding(context.getLocation(e));
for(Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();){
Element e2 = Util.nextElement(iter);
if (e2 == null) {
break;
}
if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.ENABLE_WRAPPER_STYLE)){
parseWrapperStyle(context, jaxwsBinding, e2);
}else if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.ENABLE_ASYNC_MAPPING)){
parseAsynMapping(context, jaxwsBinding, e2);
}else if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.METHOD)){
parseMethod(context, jaxwsBinding, e2);
if((jaxwsBinding.getMethodName() != null) && (jaxwsBinding.getMethodName().getJavaDoc() != null)){
parent.setDocumentation(new Documentation(jaxwsBinding.getMethodName().getJavaDoc()));
}
}else if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.PARAMETER)){
parseParameter(context, jaxwsBinding, e2);
}else{
Util.fail(
"parsing.invalidExtensionElement",
e2.getTagName(),
e2.getNamespaceURI());
return false;
}
}
parent.addExtension(jaxwsBinding);
context.pop();
// context.fireDoneParsingEntity(
// JAXWSBindingsConstants.JAXWS_BINDINGS,
// jaxwsBinding);
return true;
}
示例7: handlePortTypeOperation
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入方法依赖的package包/类
private boolean handlePortTypeOperation(TWSDLParserContext context, Operation parent, Element e) {
context.push();
context.registerNamespaces(e);
JAXWSBinding jaxwsBinding = new JAXWSBinding(context.getLocation(e));
for(Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();){
Element e2 = Util.nextElement(iter);
if (e2 == null)
break;
if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.ENABLE_WRAPPER_STYLE)){
parseWrapperStyle(context, jaxwsBinding, e2);
}else if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.ENABLE_ASYNC_MAPPING)){
parseAsynMapping(context, jaxwsBinding, e2);
}else if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.METHOD)){
parseMethod(context, jaxwsBinding, e2);
if((jaxwsBinding.getMethodName() != null) && (jaxwsBinding.getMethodName().getJavaDoc() != null)){
parent.setDocumentation(new Documentation(jaxwsBinding.getMethodName().getJavaDoc()));
}
}else if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.PARAMETER)){
parseParameter(context, jaxwsBinding, e2);
}else{
Util.fail(
"parsing.invalidExtensionElement",
e2.getTagName(),
e2.getNamespaceURI());
return false;
}
}
parent.addExtension(jaxwsBinding);
context.pop();
// context.fireDoneParsingEntity(
// JAXWSBindingsConstants.JAXWS_BINDINGS,
// jaxwsBinding);
return true;
}
示例8: handlePortExtension
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入方法依赖的package包/类
public boolean handlePortExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
if(XmlUtil.matchesTagNS(e, JAXWSBindingsConstants.JAXWS_BINDINGS)){
context.push();
context.registerNamespaces(e);
JAXWSBinding jaxwsBinding = new JAXWSBinding(context.getLocation(e));
for(Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();){
Element e2 = Util.nextElement(iter);
if (e2 == null)
break;
if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.PROVIDER)){
parseProvider(context, jaxwsBinding, e2);
}else if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.METHOD)){
parseMethod(context, jaxwsBinding, e2);
if((jaxwsBinding.getMethodName() != null) && (jaxwsBinding.getMethodName().getJavaDoc() != null)){
((Port)parent).setDocumentation(new Documentation(jaxwsBinding.getMethodName().getJavaDoc()));
}
}else{
Util.fail(
"parsing.invalidExtensionElement",
e2.getTagName(),
e2.getNamespaceURI());
return false;
}
}
parent.addExtension(jaxwsBinding);
context.pop();
// context.fireDoneParsingEntity(
// JAXWSBindingsConstants.JAXWS_BINDINGS,
// jaxwsBinding);
return true;
}else {
Util.fail(
"parsing.invalidExtensionElement",
e.getTagName(),
e.getNamespaceURI());
return false;
}
}
示例9: handlePortExtension
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding; //导入方法依赖的package包/类
@Override
public boolean handlePortExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
if(XmlUtil.matchesTagNS(e, JAXWSBindingsConstants.JAXWS_BINDINGS)){
context.push();
context.registerNamespaces(e);
JAXWSBinding jaxwsBinding = new JAXWSBinding(context.getLocation(e));
for(Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();){
Element e2 = Util.nextElement(iter);
if (e2 == null) {
break;
}
if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.PROVIDER)){
parseProvider(context, jaxwsBinding, e2);
}else if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.METHOD)){
parseMethod(context, jaxwsBinding, e2);
if((jaxwsBinding.getMethodName() != null) && (jaxwsBinding.getMethodName().getJavaDoc() != null)){
((Port)parent).setDocumentation(new Documentation(jaxwsBinding.getMethodName().getJavaDoc()));
}
}else{
Util.fail(
"parsing.invalidExtensionElement",
e2.getTagName(),
e2.getNamespaceURI());
return false;
}
}
parent.addExtension(jaxwsBinding);
context.pop();
// context.fireDoneParsingEntity(
// JAXWSBindingsConstants.JAXWS_BINDINGS,
// jaxwsBinding);
return true;
}else {
Util.fail(
"parsing.invalidExtensionElement",
e.getTagName(),
e.getNamespaceURI());
return false;
}
}