public abstract class WSDLModelerBase extends Object implements Modeler
| Modifier and Type | Class and Description |
|---|---|
class |
WSDLModelerBase.ProcessSOAPOperationInfo |
static class |
WSDLModelerBase.WSDLExceptionInfo |
| Modifier and Type | Field and Description |
|---|---|
protected Map |
_faultTypeToStructureMap |
protected Map |
_javaExceptions |
protected JavaSimpleTypeCreator |
_javaTypes |
protected HashSet |
hSet |
protected WSDLModelerBase.ProcessSOAPOperationInfo |
info |
static String |
MESSAGE_HAS_MIME_MULTIPART_RELATED_BINDING |
protected WSDLParser |
parser |
| Constructor and Description |
|---|
WSDLModelerBase(WSDLModelInfo modelInfo,
Properties options) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameterToStructures(MessagePart part,
Parameter parameter,
LiteralStructuredType literalType,
JavaStructureType javaType) |
Model |
buildModel()
Builds model from WSDL document.
|
protected void |
checkNotWsdlElement(Element e) |
protected void |
checkNotWsdlRequired(Element e) |
protected boolean |
createJavaException(Fault fault,
Port port,
String operationName) |
protected boolean |
createJavaExceptionFromLiteralType(Fault fault,
Port port,
String operationName) |
protected boolean |
createJavaExceptionFromSOAPType(Fault fault,
Port port,
String operationName) |
protected void |
createJavaInterfaceForPort(Port port) |
protected void |
createParentFault(Fault fault) |
protected void |
createRelativeJavaExceptions(Fault fault,
Port port,
String operationName) |
protected void |
createSubfaults(Fault fault) |
protected static Message |
findMessage(QName messageName,
WSDLModelerBase.ProcessSOAPOperationInfo info) |
protected Extension |
getAnyExtensionOfType(Extensible extensible,
Class type) |
protected Documentation |
getDocumentationFor(Element e) |
protected LiteralType |
getElementTypeToLiteralType(QName elementType) |
protected ProcessorEnvironment |
getEnvironment() |
protected WSDLModelerBase.WSDLExceptionInfo |
getExceptionInfo(Fault fault) |
protected static Extension |
getExtensionOfType(Extensible extensible,
Class type) |
protected String |
getFaultName(String faultPartName,
String soapFaultName,
String bindFaultName,
String faultMessageName)
bug fix: 4884736, this method can be overriden from subclasses of WSDLModelerBase
Returns soapbinding:fault name.
|
protected AbstractType |
getHeaderFaultSequenceType(AbstractType faultType,
MessagePart faultPart,
QName elemName) |
protected Message |
getInputMessage() |
protected String |
getJavaNameForOperation(Operation operation) |
protected String |
getJavaNameOfPort(QName portQName) |
protected String |
getJavaNameOfSEI(Port port) |
protected String |
getLiteralJavaMemberName(Fault fault) |
protected List |
getMessageParts(SOAPBody body,
Message message,
boolean isInput) |
protected String |
getNonQualifiedNameFor(QName name) |
protected Message |
getOutputMessage() |
protected static QName |
getQNameOf(GloballyKnown entity) |
protected String |
getRequestNamespaceURI(SOAPBody body) |
protected String |
getResponseNamespaceURI(SOAPBody body) |
protected SchemaAnalyzerBase |
getSchemaAnalyzer() |
protected abstract SchemaAnalyzerBase |
getSchemaAnalyzerInstance(WSDLDocument document,
WSDLModelInfo _modelInfo,
Properties _options,
Set _conflictingClassNames,
JavaSimpleTypeCreator _javaTypes)
Gets the appropriate Schema Analyzer for the wsdl
|
protected String |
getServiceInterfaceName(QName serviceQName,
Service wsdlService) |
protected SOAPBody |
getSOAPRequestBody() |
protected SOAPBody |
getSOAPResponseBody() |
protected String |
getStructureNamePrefix() |
protected String |
getUniqueName(Operation operation,
boolean hasOverloadedOperations) |
protected String |
getUniqueParameterName(Operation operation,
String baseName) |
protected void |
handleLiteralSOAPFault(Response response,
Set duplicateNames) |
protected void |
info(String key) |
protected void |
info(String key,
String arg) |
protected boolean |
isBoundToMimeContent(MessagePart part) |
protected boolean |
isBoundToSOAPBody(MessagePart part) |
protected boolean |
isConflictingClassName(String name) |
protected boolean |
isConflictingExceptionClassName(String name) |
protected boolean |
isConflictingPortClassName(String name) |
protected boolean |
isConflictingServiceClassName(String name) |
protected boolean |
isConflictingStubClassName(String name) |
protected boolean |
isConflictingTieClassName(String name) |
boolean |
isEquivalentLiteralStructures(LiteralStructuredType struct1,
LiteralStructuredType struct2) |
boolean |
isEquivalentSOAPStructures(SOAPStructureType struct1,
SOAPStructureType struct2) |
protected boolean |
isOperationDocumentLiteral() |
protected boolean |
isRequestMimeMultipart() |
protected boolean |
isResponseMimeMultipart() |
protected boolean |
isSingleInOutPart(Set inputParameterNames,
MessagePart outputPart)
Returns true when there is single inout part and no parameterOrder defined.
|
protected boolean |
isStyleAndPartMatch(SOAPOperation soapOperation,
MessagePart part)
For Document/Lit the wsdl:part should only have element attribute and
for RPC/Lit or RPC/Encoded the wsdl:part should only have type attribute
inside wsdl:message.
|
protected boolean |
isUnwrappable() |
protected boolean |
isUnwrappable(Message inputMessage) |
protected boolean |
isWrapperType(LiteralType type) |
protected String |
makeNameUniqueInSet(String candidateName,
Set names) |
protected QName |
makePackageQualified(QName name) |
protected QName |
makePackageQualified(QName name,
boolean useNamespaceMapping) |
protected String |
makePackageQualified(String s,
QName name) |
protected String |
makePackageQualified(String s,
QName name,
boolean useNamespaceMapping) |
protected void |
postProcessSOAPOperation(Operation operation) |
protected void |
processHeaderFaults(SOAPHeader header,
WSDLModelerBase.ProcessSOAPOperationInfo info,
Response response,
Set duplicateNames) |
protected List |
processParameterOrder(Set inputParameterNames,
Set outputParameterNames,
StringBuffer resultParameterName) |
protected boolean |
processPort(Port wsdlPort,
Service service,
WSDLDocument document) |
protected void |
processSearchSchemaOption(WSDLDocument document,
Model model)
Should be called for -f:searchschema option processing.
|
protected void |
processService(Service wsdlService,
Model model,
WSDLDocument document) |
protected Operation |
processSOAPOperation() |
protected Operation |
processSOAPOperationDocumentLiteralStyle() |
protected Operation |
processSOAPOperationRPCEncodedStyle() |
protected Operation |
processSOAPOperationRPCLiteralStyle() |
protected void |
setCurrentPort(Port port) |
protected static void |
setDocumentationIfPresent(ModelObject obj,
Documentation documentation) |
protected void |
setJavaOperationNameProperty(Message inputMessage) |
protected void |
setSOAPUse() |
protected void |
setUnwrapped(LiteralStructuredType type) |
protected static boolean |
tokenListContains(String tokenList,
String target) |
protected boolean |
typeHasNoWildcardElement(LiteralType type,
boolean unwrappable) |
protected boolean |
useExplicitServiceContextForDocLit(Message inputMessage) |
protected boolean |
useExplicitServiceContextForRpcEncoded(Message inputMessage) |
protected boolean |
useExplicitServiceContextForRpcLit(Message inputMessage) |
protected AbstractType |
verifyParameterType(AbstractType type,
String partName,
Operation operation) |
protected AbstractType |
verifyResultType(AbstractType type,
Operation operation) |
protected void |
warn(Localizable msg) |
protected void |
warn(String key) |
protected void |
warn(String key,
Object[] args) |
protected void |
warn(String key,
String arg) |
public static final String MESSAGE_HAS_MIME_MULTIPART_RELATED_BINDING
protected WSDLModelerBase.ProcessSOAPOperationInfo info
protected Map _javaExceptions
protected Map _faultTypeToStructureMap
protected JavaSimpleTypeCreator _javaTypes
protected WSDLParser parser
protected HashSet hSet
public WSDLModelerBase(WSDLModelInfo modelInfo, Properties options)
public Model buildModel()
buildModel in interface ModelerModeler.buildModel()protected abstract SchemaAnalyzerBase getSchemaAnalyzerInstance(WSDLDocument document, WSDLModelInfo _modelInfo, Properties _options, Set _conflictingClassNames, JavaSimpleTypeCreator _javaTypes)
document - _modelInfo - _options - _conflictingClassNames - _javaTypes - protected SchemaAnalyzerBase getSchemaAnalyzer()
protected void processSearchSchemaOption(WSDLDocument document, Model model)
document - WSDL documentmodel - Model which will be used by the generators to generate code.protected Documentation getDocumentationFor(Element e)
protected void checkNotWsdlElement(Element e)
protected void checkNotWsdlRequired(Element e)
protected String getServiceInterfaceName(QName serviceQName, Service wsdlService)
serviceQName - wsdlService - protected void processService(Service wsdlService, Model model, WSDLDocument document)
wsdlService - model - document - protected boolean processPort(Port wsdlPort, Service service, WSDLDocument document)
wsdlPort - service - document - protected void setCurrentPort(Port port)
protected Operation processSOAPOperation()
protected void postProcessSOAPOperation(Operation operation)
protected void setJavaOperationNameProperty(Message inputMessage)
protected boolean useExplicitServiceContextForRpcEncoded(Message inputMessage)
protected boolean useExplicitServiceContextForRpcLit(Message inputMessage)
protected boolean useExplicitServiceContextForDocLit(Message inputMessage)
protected Operation processSOAPOperationRPCEncodedStyle()
protected AbstractType verifyResultType(AbstractType type, Operation operation)
protected AbstractType verifyParameterType(AbstractType type, String partName, Operation operation)
protected void createParentFault(Fault fault)
protected void createSubfaults(Fault fault)
protected SOAPBody getSOAPRequestBody()
protected boolean isRequestMimeMultipart()
protected boolean isResponseMimeMultipart()
protected SOAPBody getSOAPResponseBody()
protected Message getOutputMessage()
protected Message getInputMessage()
protected void setSOAPUse()
protected List getMessageParts(SOAPBody body, Message message, boolean isInput)
body - request or response body, represents soap:bodymessage - Input or output message, equivalent to wsdl:messageprotected List processParameterOrder(Set inputParameterNames, Set outputParameterNames, StringBuffer resultParameterName)
protected boolean isSingleInOutPart(Set inputParameterNames, MessagePart outputPart)
protected boolean isOperationDocumentLiteral()
protected boolean isStyleAndPartMatch(SOAPOperation soapOperation, MessagePart part)
protected String getStructureNamePrefix()
protected Operation processSOAPOperationRPCLiteralStyle()
protected boolean isBoundToMimeContent(MessagePart part)
part - protected boolean isBoundToSOAPBody(MessagePart part)
part - protected void handleLiteralSOAPFault(Response response, Set duplicateNames)
response - duplicateNames - protected String getFaultName(String faultPartName, String soapFaultName, String bindFaultName, String faultMessageName)
faultPartName - - to be used by versions < 1.1soapFaultName - bindFaultName - faultMessageName - protected void addParameterToStructures(MessagePart part, Parameter parameter, LiteralStructuredType literalType, JavaStructureType javaType)
protected boolean isUnwrappable(Message inputMessage)
protected boolean isUnwrappable()
protected boolean isWrapperType(LiteralType type)
protected boolean typeHasNoWildcardElement(LiteralType type, boolean unwrappable)
protected void setUnwrapped(LiteralStructuredType type)
protected Operation processSOAPOperationDocumentLiteralStyle()
protected void processHeaderFaults(SOAPHeader header, WSDLModelerBase.ProcessSOAPOperationInfo info, Response response, Set duplicateNames)
protected AbstractType getHeaderFaultSequenceType(AbstractType faultType, MessagePart faultPart, QName elemName)
faultType - protected void createJavaInterfaceForPort(Port port)
protected boolean createJavaException(Fault fault, Port port, String operationName)
protected WSDLModelerBase.WSDLExceptionInfo getExceptionInfo(Fault fault)
protected boolean createJavaExceptionFromSOAPType(Fault fault, Port port, String operationName)
public boolean isEquivalentSOAPStructures(SOAPStructureType struct1, SOAPStructureType struct2)
public boolean isEquivalentLiteralStructures(LiteralStructuredType struct1, LiteralStructuredType struct2)
protected boolean createJavaExceptionFromLiteralType(Fault fault, Port port, String operationName)
protected void createRelativeJavaExceptions(Fault fault, Port port, String operationName)
protected ProcessorEnvironment getEnvironment()
protected void warn(Localizable msg)
protected void warn(String key)
protected void info(String key)
protected String makePackageQualified(String s, QName name, boolean useNamespaceMapping)
protected String getUniqueParameterName(Operation operation, String baseName)
protected static void setDocumentationIfPresent(ModelObject obj, Documentation documentation)
protected static QName getQNameOf(GloballyKnown entity)
protected static Extension getExtensionOfType(Extensible extensible, Class type)
protected Extension getAnyExtensionOfType(Extensible extensible, Class type)
protected static Message findMessage(QName messageName, WSDLModelerBase.ProcessSOAPOperationInfo info)
protected boolean isConflictingClassName(String name)
protected boolean isConflictingServiceClassName(String name)
protected boolean isConflictingStubClassName(String name)
protected boolean isConflictingTieClassName(String name)
protected boolean isConflictingPortClassName(String name)
protected boolean isConflictingExceptionClassName(String name)
protected LiteralType getElementTypeToLiteralType(QName elementType)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.