Apache CXF API

org.apache.cxf.javascript.service
Class ServiceJavascriptBuilder

java.lang.Object
  extended by org.apache.cxf.service.ServiceModelVisitor
      extended by org.apache.cxf.javascript.service.ServiceJavascriptBuilder

public class ServiceJavascriptBuilder
extends ServiceModelVisitor

Class to construct the JavaScript corresponding to a service.


Field Summary
 
Fields inherited from class org.apache.cxf.service.ServiceModelVisitor
serviceInfo
 
Constructor Summary
ServiceJavascriptBuilder(ServiceInfo serviceInfo, String endpointAddress, NamespacePrefixAccumulator prefixAccumulator, NameManager nameManager)
          Construct builder object.
 
Method Summary
 void begin(EndpointInfo endpointInfo)
           
 void begin(FaultInfo fault)
           
 void begin(InterfaceInfo intf)
           
 void begin(MessageInfo msg)
           
 void begin(OperationInfo op)
           
 void begin(ServiceInfo service)
           
static String cleanedUpSchemaSource(org.apache.ws.commons.schema.XmlSchemaObject subject)
           
 void end(FaultInfo fault)
           
 void end(InterfaceInfo intf)
           
 void end(MessageInfo msg)
           
 void end(MessagePartInfo part)
           
 void end(OperationInfo op)
           
 void end(ServiceInfo service)
           
 String getCode()
           
static org.apache.ws.commons.schema.XmlSchemaType getElementType(SchemaCollection xmlSchemaCollection, String referencingURI, org.apache.ws.commons.schema.XmlSchemaElement element, org.apache.ws.commons.schema.XmlSchemaType containingType)
          Follow a chain of references from element to element until we can obtain a type.
static void unsupportedConstruct(String messageKey, String what, QName subjectName, org.apache.ws.commons.schema.XmlSchemaObject subject)
           
static void unsupportedConstruct(String messageKey, org.apache.ws.commons.schema.XmlSchemaType subject)
           
 
Methods inherited from class org.apache.cxf.service.ServiceModelVisitor
begin, begin, end, end, walk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceJavascriptBuilder

public ServiceJavascriptBuilder(ServiceInfo serviceInfo,
                                String endpointAddress,
                                NamespacePrefixAccumulator prefixAccumulator,
                                NameManager nameManager)
Construct builder object.

Parameters:
serviceInfo - CXF service model description of the service.
endpointAddress - http:// URL for the service, or null if not known.
prefixAccumulator - object that keeps track of prefixes through an entire WSDL.
nameManager - object that generates names for JavaScript objects.
Method Detail

getCode

public String getCode()

begin

public void begin(FaultInfo fault)
Overrides:
begin in class ServiceModelVisitor

begin

public void begin(InterfaceInfo intf)
Overrides:
begin in class ServiceModelVisitor

end

public void end(OperationInfo op)
Overrides:
end in class ServiceModelVisitor

begin

public void begin(ServiceInfo service)
Overrides:
begin in class ServiceModelVisitor

end

public void end(FaultInfo fault)
Overrides:
end in class ServiceModelVisitor

end

public void end(InterfaceInfo intf)
Overrides:
end in class ServiceModelVisitor

end

public void end(MessageInfo msg)
Overrides:
end in class ServiceModelVisitor

end

public void end(MessagePartInfo part)
Overrides:
end in class ServiceModelVisitor

end

public void end(ServiceInfo service)
Overrides:
end in class ServiceModelVisitor

begin

public void begin(OperationInfo op)
Overrides:
begin in class ServiceModelVisitor

begin

public void begin(MessageInfo msg)
Overrides:
begin in class ServiceModelVisitor

begin

public void begin(EndpointInfo endpointInfo)
Overrides:
begin in class ServiceModelVisitor

getElementType

public static org.apache.ws.commons.schema.XmlSchemaType getElementType(SchemaCollection xmlSchemaCollection,
                                                                        String referencingURI,
                                                                        org.apache.ws.commons.schema.XmlSchemaElement element,
                                                                        org.apache.ws.commons.schema.XmlSchemaType containingType)
Follow a chain of references from element to element until we can obtain a type.

Parameters:
element -

unsupportedConstruct

public static void unsupportedConstruct(String messageKey,
                                        String what,
                                        QName subjectName,
                                        org.apache.ws.commons.schema.XmlSchemaObject subject)

unsupportedConstruct

public static void unsupportedConstruct(String messageKey,
                                        org.apache.ws.commons.schema.XmlSchemaType subject)

cleanedUpSchemaSource

public static String cleanedUpSchemaSource(org.apache.ws.commons.schema.XmlSchemaObject subject)

Apache CXF API

Apache CXF