Java Code Examples for com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding#getMethodName()
The following examples show how to use
com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding#getMethodName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WSDLModeler.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
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; }
Example 2
Source File: WSDLModelerBase.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * * @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); } }
Example 3
Source File: WSDLModeler.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
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; }
Example 4
Source File: WSDLModeler.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
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; }
Example 5
Source File: WSDLModelerBase.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * * @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); } }
Example 6
Source File: WSDLModeler.java From hottub with GNU General Public License v2.0 | 6 votes |
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; }
Example 7
Source File: PseudoSchemaBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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(); }
Example 8
Source File: JAXWSBindingExtensionHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
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; }
Example 9
Source File: JAXWSBindingExtensionHandler.java From hottub with GNU General Public License v2.0 | 5 votes |
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; }
Example 10
Source File: JAXWSBindingExtensionHandler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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; }
Example 11
Source File: PseudoSchemaBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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(); }
Example 12
Source File: PseudoSchemaBuilder.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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(); }
Example 13
Source File: JAXWSBindingExtensionHandler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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; }
Example 14
Source File: JAXWSBindingExtensionHandler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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; }
Example 15
Source File: PseudoSchemaBuilder.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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(); }
Example 16
Source File: JAXWSBindingExtensionHandler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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; }
Example 17
Source File: JAXWSBindingExtensionHandler.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@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; } }
Example 18
Source File: JAXWSBindingExtensionHandler.java From hottub with GNU General Public License v2.0 | 4 votes |
@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; } }
Example 19
Source File: JAXWSBindingExtensionHandler.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@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; } }
Example 20
Source File: JAXWSBindingExtensionHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@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; } }