public class DefaultMessagesProvider extends Object implements MessagesProvider
MessagesProvider
.
Simply adds all elements contained in the schema(s) as messages.
Constructor and Description |
---|
DefaultMessagesProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addMessages(javax.wsdl.Definition definition) |
protected String |
getElementName(Element element)
Returns the name attribute of the given element.
|
protected boolean |
isMessageElement(Element element)
Indicates whether the given element should be includes as
Message in the definition. |
protected void |
populateMessage(javax.wsdl.Definition definition,
javax.wsdl.Message message,
QName elementName)
Called after the
Message has been created. |
protected void |
populatePart(javax.wsdl.Definition definition,
javax.wsdl.Part part,
QName elementName)
Called after the
Part has been created. |
public void addMessages(javax.wsdl.Definition definition) throws javax.wsdl.WSDLException
addMessages
in interface MessagesProvider
javax.wsdl.WSDLException
protected String getElementName(Element element)
element
- the element whose name to returnprotected boolean isMessageElement(Element element)
Message
in the definition.
Default implementation checks whether the element has the XML Schema namespace, and if it has the local name "element".
element
- the element elligable for being a messagetrue
if to be included as message; false
otherwiseprotected void populateMessage(javax.wsdl.Definition definition, javax.wsdl.Message message, QName elementName) throws javax.wsdl.WSDLException
Message
has been created.
Default implementation sets the name of the message to the element name.
definition
- the WSDL4J Definition
message
- the WSDL4J Message
elementName
- the element namejavax.wsdl.WSDLException
- in case of errorsprotected void populatePart(javax.wsdl.Definition definition, javax.wsdl.Part part, QName elementName) throws javax.wsdl.WSDLException
Part
has been created.
Default implementation sets the element name of the part.
definition
- the WSDL4J Definition
part
- the WSDL4J Part
elementName
- the elementName @throws WSDLException in case of errorsjavax.wsdl.WSDLException
Part.setElementName(javax.xml.namespace.QName)
Copyright © 2020 Pivotal Software. All rights reserved.