public class WsdlModel extends LicasWsdlModel
Constructor and Description |
---|
WsdlModel()
Create a new instance of WsdlModel.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addBinding(WsdlBinding binding)
Add a new binding to the model.
|
boolean |
addInterface(WsdlInterface wsdlInterface)
Add a new interface object to the model.
|
boolean |
addMessage(WsdlMessage message)
Add a new message to the model.
|
boolean |
addOperation(WsdlOperation operation)
Add a new operation to the model.
|
boolean |
addPort(WsdlPort port)
Add a new port to the model.
|
boolean |
addService(WsdlService service)
Add a new service to the model.
|
void |
convertMessagesToParameters()
Traverse all of the stored operations and convert the related message parts
into empty parameter info elements as part of a complete nested structure.
|
static java.lang.String |
convertToBindingType(java.lang.String bindingName)
Convert the binding name to a binding type tag.
|
static java.lang.String |
createPortTypeTag(java.lang.String portName)
Convert the port name to a port type tag.
|
WsdlBinding |
getBinding(java.lang.String bindingName)
Get the binding with the specified name.
|
java.util.HashMap |
getBindings()
Get all bindings.
|
javax.xml.namespace.QName |
getLocalNamespace()
Get the local namespace.
|
WsdlMessage |
getMessage(java.lang.String messageName)
Get the message with the specified name.
|
java.util.HashMap |
getMessages()
Get all messages.
|
java.lang.String |
getName()
Get the web service name.
|
WsdlOperation |
getOperation(java.lang.String operationName)
Get the operation with the specified name.
|
java.util.HashMap |
getOperations()
Get all operations.
|
WsdlPort |
getPort(java.lang.String portName)
Get the port with the specified name.
|
java.util.HashMap |
getPorts()
Get all pports.
|
WsdlService |
getService(java.lang.String serviceName)
Get the service with the specified name.
|
java.util.ArrayList |
getServiceNames()
Return a list of service names.
|
java.util.HashMap |
getServices()
Get all services.
|
WsdlTypes |
getTypes()
Get the parameter type descriptions.
|
WsMethodInfo |
getWebServiceInfo(java.lang.String operationName)
Generate and return the appropriate information to call an operation on
a web service.
|
javax.xml.namespace.QName |
getXmlNamespace()
Get the xml namespace.
|
static boolean |
isInterface(java.lang.String elementName)
Return true if the tag indicates an interface element.
|
void |
setLocalNamespace(javax.xml.namespace.QName thisLocalNamespace)
Set the local namespace.
|
void |
setName(java.lang.String thisName)
Set the web service name.
|
void |
setTypes(WsdlTypes thisWsdlTypes)
Set the parameter type descriptions.
|
void |
setXmlNamespace(javax.xml.namespace.QName thisXmlNamespace)
Set the xml namespace.
|
public WsMethodInfo getWebServiceInfo(java.lang.String operationName) throws java.lang.Exception
operationName
- the name of the operation to call.java.lang.Exception
- any error.public void convertMessagesToParameters()
public void setName(java.lang.String thisName)
thisName
- the optional web service name.public java.lang.String getName()
public void setLocalNamespace(javax.xml.namespace.QName thisLocalNamespace)
thisLocalNamespace
- the local namespace.public javax.xml.namespace.QName getLocalNamespace()
public void setXmlNamespace(javax.xml.namespace.QName thisXmlNamespace)
thisXmlNamespace
- the xml namespace.public javax.xml.namespace.QName getXmlNamespace()
public java.util.ArrayList getServiceNames()
public boolean addService(WsdlService service)
service
- the service to add.public WsdlService getService(java.lang.String serviceName)
serviceName
- the service name.public java.util.HashMap getServices()
public boolean addMessage(WsdlMessage message)
message
- the message to add.public WsdlMessage getMessage(java.lang.String messageName)
messageName
- the message name.public java.util.HashMap getMessages()
public boolean addInterface(WsdlInterface wsdlInterface)
wsdlInterface
- the interface to add. Could be a port or binding, for example.public boolean addBinding(WsdlBinding binding)
binding
- the binding to add.public WsdlBinding getBinding(java.lang.String bindingName)
bindingName
- the binding name.public java.util.HashMap getBindings()
public boolean addPort(WsdlPort port)
port
- the port to add.public WsdlPort getPort(java.lang.String portName)
portName
- the port name.public java.util.HashMap getPorts()
public boolean addOperation(WsdlOperation operation)
operation
- the operation to add.public WsdlOperation getOperation(java.lang.String operationName)
operationName
- the operation name.public java.util.HashMap getOperations()
public void setTypes(WsdlTypes thisWsdlTypes)
thisWsdlTypes
- the type descriptions.public WsdlTypes getTypes()
public static boolean isInterface(java.lang.String elementName)
elementName
- the element name.public static java.lang.String createPortTypeTag(java.lang.String portName)
portName
- the port name.public static java.lang.String convertToBindingType(java.lang.String bindingName)
bindingName
- the binding name.