Package org.apache.cxf.service
Class ServiceModelVisitor
- java.lang.Object
- 
- org.apache.cxf.service.ServiceModelVisitor
 
- 
- Direct Known Subclasses:
- ServiceModelSchemaValidator
 
 public class ServiceModelVisitor extends Object Implements the Visitor pattern for the Service model. The visit order is as follows:1) Begin the overall service info. 2) Begin the service's interface. 3) For each operation, begin the operation. 3.1) begin the input message. 3.1.1) begin and end each part of the input message. 3.2) end the input message. 3.3) begin the output message. 3.3.1) begin and end each part of the output message. 3.4) end the output message 3.5) begin each fault. (3.5-3.6 repeated for each fault) 3.5.1) begin and end each part of each fault 3.6) end each fault. 3.7) if a wrapped operation, begin the corresponding unwrapped operation. 3.8) process the entire unwrapped operation starting at (3). 3.9) end the unwrapped operation. 4) end the operation. 5) end the interface. 6) For each endpoint (= port) begin and end the EndpointInfo 7) For each binding (= BindingInfo) begin and end the BindingInfo. 8) end the service info. Unwrapped operations share messages with their corresponding wrapped messages, so beware of processing the same messages twice as if unique.
- 
- 
Field SummaryFields Modifier and Type Field Description protected ServiceInfoserviceInfo
 - 
Constructor SummaryConstructors Constructor Description ServiceModelVisitor(ServiceInfo serviceInfo)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin(BindingInfo bindingInfo)voidbegin(EndpointInfo endpointInfo)voidbegin(FaultInfo fault)voidbegin(InterfaceInfo intf)voidbegin(MessageInfo msg)voidbegin(MessagePartInfo part)voidbegin(OperationInfo op)voidbegin(ServiceInfo service)voidbegin(UnwrappedOperationInfo op)voidend(BindingInfo bindingInfo)voidend(EndpointInfo endpointInfo)voidend(FaultInfo fault)voidend(InterfaceInfo intf)voidend(MessageInfo msg)voidend(MessagePartInfo part)voidend(OperationInfo op)voidend(ServiceInfo service)voidend(UnwrappedOperationInfo op)voidwalk()
 
- 
- 
- 
Field Detail- 
serviceInfoprotected ServiceInfo serviceInfo 
 
- 
 - 
Constructor Detail- 
ServiceModelVisitorpublic ServiceModelVisitor(ServiceInfo serviceInfo) 
 
- 
 - 
Method Detail- 
walkpublic void walk() 
 - 
beginpublic void begin(ServiceInfo service) 
 - 
beginpublic void begin(InterfaceInfo intf) 
 - 
beginpublic void begin(OperationInfo op) 
 - 
beginpublic void begin(UnwrappedOperationInfo op) 
 - 
beginpublic void begin(MessageInfo msg) 
 - 
beginpublic void begin(MessagePartInfo part) 
 - 
beginpublic void begin(FaultInfo fault) 
 - 
endpublic void end(ServiceInfo service) 
 - 
endpublic void end(InterfaceInfo intf) 
 - 
endpublic void end(OperationInfo op) 
 - 
endpublic void end(UnwrappedOperationInfo op) 
 - 
endpublic void end(MessageInfo msg) 
 - 
endpublic void end(MessagePartInfo part) 
 - 
endpublic void end(FaultInfo fault) 
 - 
beginpublic void begin(EndpointInfo endpointInfo) 
 - 
endpublic void end(EndpointInfo endpointInfo) 
 - 
beginpublic void begin(BindingInfo bindingInfo) 
 - 
endpublic void end(BindingInfo bindingInfo) 
 
- 
 
-