Class WSDLModelerBase
java.lang.Object
com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase
- All Implemented Interfaces:
Modeler
- Direct Known Subclasses:
WSDLModeler101,WSDLModeler103,WSDLModeler11,WSDLModeler111,WSDLModeler112
- Author:
- JAX-RPC Development Team Base class for WSDL->Model classes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Mapprotected Mapprotected JavaSimpleTypeCreatorprotected HashSetprotected WSDLModelerBase.ProcessSOAPOperationInfostatic final Stringprotected WSDLParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddParameterToStructures(MessagePart part, Parameter parameter, LiteralStructuredType literalType, JavaStructureType javaType) Builds model from WSDL document.protected voidprotected voidprotected booleancreateJavaException(Fault fault, Port port, String operationName) protected booleancreateJavaExceptionFromLiteralType(Fault fault, Port port, String operationName) protected booleancreateJavaExceptionFromSOAPType(Fault fault, Port port, String operationName) protected voidprotected voidcreateParentFault(Fault fault) protected voidcreateRelativeJavaExceptions(Fault fault, Port port, String operationName) protected voidcreateSubfaults(Fault fault) protected static MessagefindMessage(QName messageName, WSDLModelerBase.ProcessSOAPOperationInfo info) protected ExtensiongetAnyExtensionOfType(Extensible extensible, Class type) protected Documentationprotected LiteralTypegetElementTypeToLiteralType(QName elementType) protected ProcessorEnvironmentprotected WSDLModelerBase.WSDLExceptionInfogetExceptionInfo(Fault fault) protected static ExtensiongetExtensionOfType(Extensible extensible, Class type) protected StringgetFaultName(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 AbstractTypegetHeaderFaultSequenceType(AbstractType faultType, MessagePart faultPart, QName elemName) protected Messageprotected StringgetJavaNameForOperation(Operation operation) protected StringgetJavaNameOfPort(QName portQName) protected StringgetJavaNameOfSEI(Port port) protected StringgetLiteralJavaMemberName(Fault fault) protected ListgetMessageParts(SOAPBody body, Message message, boolean isInput) protected StringgetNonQualifiedNameFor(QName name) protected Messageprotected static QNamegetQNameOf(GloballyKnown entity) protected Stringprotected Stringprotected SchemaAnalyzerBaseprotected abstract SchemaAnalyzerBasegetSchemaAnalyzerInstance(WSDLDocument document, WSDLModelInfo _modelInfo, Properties _options, Set _conflictingClassNames, JavaSimpleTypeCreator _javaTypes) Gets the appropriate Schema Analyzer for the wsdlprotected StringgetServiceInterfaceName(QName serviceQName, Service wsdlService) protected SOAPBodyprotected SOAPBodyprotected Stringprotected StringgetUniqueName(Operation operation, boolean hasOverloadedOperations) protected StringgetUniqueParameterName(Operation operation, String baseName) protected voidhandleLiteralSOAPFault(Response response, Set duplicateNames) protected voidprotected voidprotected booleanprotected booleanisBoundToSOAPBody(MessagePart part) protected booleanisConflictingClassName(String name) protected booleanprotected booleanprotected booleanprotected booleanprotected booleanbooleanisEquivalentLiteralStructures(LiteralStructuredType struct1, LiteralStructuredType struct2) booleanisEquivalentSOAPStructures(SOAPStructureType struct1, SOAPStructureType struct2) protected booleanprotected booleanprotected booleanprotected booleanisSingleInOutPart(Set inputParameterNames, MessagePart outputPart) Returns true when there is single inout part and no parameterOrder defined.protected booleanisStyleAndPartMatch(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 booleanprotected booleanisUnwrappable(Message inputMessage) protected booleanisWrapperType(LiteralType type) protected StringmakeNameUniqueInSet(String candidateName, Set names) protected StringmakePackageQualified(String s, QName name) protected StringmakePackageQualified(String s, QName name, boolean useNamespaceMapping) protected QNamemakePackageQualified(QName name) protected QNamemakePackageQualified(QName name, boolean useNamespaceMapping) protected voidpostProcessSOAPOperation(Operation operation) protected voidprocessHeaderFaults(SOAPHeader header, WSDLModelerBase.ProcessSOAPOperationInfo info, Response response, Set duplicateNames) protected ListprocessParameterOrder(Set inputParameterNames, Set outputParameterNames, StringBuffer resultParameterName) protected booleanprocessPort(Port wsdlPort, Service service, WSDLDocument document) protected voidprocessSearchSchemaOption(WSDLDocument document, Model model) Should be called for -f:searchschema option processing.protected voidprocessService(Service wsdlService, Model model, WSDLDocument document) protected Operationprotected Operationprotected Operationprotected Operationprotected voidsetCurrentPort(Port port) protected static voidsetDocumentationIfPresent(ModelObject obj, Documentation documentation) protected voidsetJavaOperationNameProperty(Message inputMessage) protected voidprotected voidprotected static booleantokenListContains(String tokenList, String target) protected booleantypeHasNoWildcardElement(LiteralType type, boolean unwrappable) protected booleanuseExplicitServiceContextForDocLit(Message inputMessage) protected booleanuseExplicitServiceContextForRpcEncoded(Message inputMessage) protected booleanuseExplicitServiceContextForRpcLit(Message inputMessage) protected AbstractTypeverifyParameterType(AbstractType type, String partName, Operation operation) protected AbstractTypeverifyResultType(AbstractType type, Operation operation) protected voidwarn(Localizable msg) protected voidprotected voidprotected void
-
Field Details
-
MESSAGE_HAS_MIME_MULTIPART_RELATED_BINDING
- See Also:
-
info
-
_javaExceptions
-
_faultTypeToStructureMap
-
_javaTypes
-
parser
-
hSet
-
-
Constructor Details
-
WSDLModelerBase
-
-
Method Details
-
buildModel
Builds model from WSDL document. Model contains abstraction which is used by the generators to generate the stub/tie/serializers etc. code.- Specified by:
buildModelin interfaceModeler- Returns:
- Model - the root Node of the model of the Web Service
- See Also:
-
getSchemaAnalyzerInstance
protected abstract SchemaAnalyzerBase getSchemaAnalyzerInstance(WSDLDocument document, WSDLModelInfo _modelInfo, Properties _options, Set _conflictingClassNames, JavaSimpleTypeCreator _javaTypes) Gets the appropriate Schema Analyzer for the wsdl- Parameters:
document-_modelInfo-_options-_conflictingClassNames-_javaTypes-- Returns:
- the schema analyzer
-
getSchemaAnalyzer
-
processSearchSchemaOption
Should be called for -f:searchschema option processing. With this option we look for all the schema types under <wsdl:types> ..</wsdl:types>.- Parameters:
document- WSDL documentmodel- Model which will be used by the generators to generate code.
-
getDocumentationFor
-
checkNotWsdlElement
-
checkNotWsdlRequired
-
getServiceInterfaceName
- Parameters:
serviceQName-wsdlService-- Returns:
- The full name of the class for the wsdl service
-
processService
- Parameters:
wsdlService-model-document-
-
getJavaNameOfPort
-
processPort
- Parameters:
wsdlPort-service-document-- Returns:
- boolean
-
setCurrentPort
-
processSOAPOperation
-
postProcessSOAPOperation
-
setJavaOperationNameProperty
-
useExplicitServiceContextForRpcEncoded
-
useExplicitServiceContextForRpcLit
-
useExplicitServiceContextForDocLit
-
processSOAPOperationRPCEncodedStyle
-
verifyResultType
-
verifyParameterType
-
createParentFault
-
createSubfaults
-
getSOAPRequestBody
-
isRequestMimeMultipart
protected boolean isRequestMimeMultipart() -
isResponseMimeMultipart
protected boolean isResponseMimeMultipart() -
getSOAPResponseBody
-
getOutputMessage
-
getInputMessage
-
setSOAPUse
protected void setSOAPUse() -
getMessageParts
- Parameters:
body- request or response body, represents soap:bodymessage- Input or output message, equivalent to wsdl:message- Returns:
- iterator over MessagePart
-
processParameterOrder
protected List processParameterOrder(Set inputParameterNames, Set outputParameterNames, StringBuffer resultParameterName) -
isSingleInOutPart
Returns true when there is single inout part and no parameterOrder defined. This fixes bug: 4922107. This method should be overriden for 1.1 or previous version to 1.1.1 as this fix results in the generated method signature change.- Returns:
- true if there is single inout part
-
isOperationDocumentLiteral
protected boolean isOperationDocumentLiteral() -
isStyleAndPartMatch
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. Nagesh: Made the above rule applicable for only wsi compliant WSDLs. -
getRequestNamespaceURI
-
getResponseNamespaceURI
-
getStructureNamePrefix
-
processSOAPOperationRPCLiteralStyle
-
isBoundToMimeContent
- Parameters:
part-- Returns:
- true if the message part is a wsdl mime type
-
isBoundToSOAPBody
- Parameters:
part-- Returns:
- true if the message part is the soap body
-
handleLiteralSOAPFault
- Parameters:
response-duplicateNames-
-
getFaultName
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. If null then gives warning for wsi R2721 and uses wsdl:fault name.- Parameters:
faultPartName- - to be used by versions < 1.1soapFaultName-bindFaultName-faultMessageName-- Returns:
- The faultMessageName if not overridden by a subclass
-
addParameterToStructures
protected void addParameterToStructures(MessagePart part, Parameter parameter, LiteralStructuredType literalType, JavaStructureType javaType) -
isUnwrappable
-
isUnwrappable
protected boolean isUnwrappable() -
isWrapperType
-
typeHasNoWildcardElement
-
setUnwrapped
-
processSOAPOperationDocumentLiteralStyle
-
processHeaderFaults
protected void processHeaderFaults(SOAPHeader header, WSDLModelerBase.ProcessSOAPOperationInfo info, Response response, Set duplicateNames) -
getHeaderFaultSequenceType
protected AbstractType getHeaderFaultSequenceType(AbstractType faultType, MessagePart faultPart, QName elemName) - Parameters:
faultType-
-
getJavaNameOfSEI
-
createJavaInterfaceForPort
-
getJavaNameForOperation
-
createJavaException
-
getExceptionInfo
-
createJavaExceptionFromSOAPType
-
getLiteralJavaMemberName
-
isEquivalentSOAPStructures
-
isEquivalentLiteralStructures
public boolean isEquivalentLiteralStructures(LiteralStructuredType struct1, LiteralStructuredType struct2) -
createJavaExceptionFromLiteralType
-
createRelativeJavaExceptions
-
getEnvironment
-
warn
-
warn
-
warn
-
warn
-
info
-
info
-
makePackageQualified
-
makePackageQualified
-
makePackageQualified
-
makePackageQualified
-
makeNameUniqueInSet
-
getUniqueName
-
getUniqueParameterName
-
getNonQualifiedNameFor
-
setDocumentationIfPresent
-
getQNameOf
-
getExtensionOfType
-
getAnyExtensionOfType
-
findMessage
protected static Message findMessage(QName messageName, WSDLModelerBase.ProcessSOAPOperationInfo info) -
tokenListContains
-
isConflictingClassName
-
isConflictingServiceClassName
-
isConflictingStubClassName
-
isConflictingTieClassName
-
isConflictingPortClassName
-
isConflictingExceptionClassName
-
getElementTypeToLiteralType
-