Class ServiceJavascriptBuilder


  • public class ServiceJavascriptBuilder
    extends org.apache.cxf.service.ServiceModelVisitor
    Class to construct the JavaScript corresponding to a service.
    • Field Summary

      • Fields inherited from class org.apache.cxf.service.ServiceModelVisitor

        serviceInfo
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void begin​(org.apache.cxf.service.model.EndpointInfo endpointInfo)  
      void begin​(org.apache.cxf.service.model.FaultInfo fault)  
      void begin​(org.apache.cxf.service.model.InterfaceInfo intf)  
      void begin​(org.apache.cxf.service.model.MessageInfo msg)  
      void begin​(org.apache.cxf.service.model.OperationInfo op)  
      void begin​(org.apache.cxf.service.model.ServiceInfo service)  
      static String cleanedUpSchemaSource​(org.apache.ws.commons.schema.XmlSchemaObject subject)  
      void end​(org.apache.cxf.service.model.FaultInfo fault)  
      void end​(org.apache.cxf.service.model.InterfaceInfo intf)  
      void end​(org.apache.cxf.service.model.MessageInfo msg)  
      void end​(org.apache.cxf.service.model.MessagePartInfo part)  
      void end​(org.apache.cxf.service.model.OperationInfo op)  
      void end​(org.apache.cxf.service.model.ServiceInfo service)  
      String getCode()  
      static org.apache.ws.commons.schema.XmlSchemaType getElementType​(org.apache.cxf.common.xmlschema.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, begin, end, end, end, walk
    • Constructor Detail

      • ServiceJavascriptBuilder

        public ServiceJavascriptBuilder​(org.apache.cxf.service.model.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​(org.apache.cxf.service.model.FaultInfo fault)
        Overrides:
        begin in class org.apache.cxf.service.ServiceModelVisitor
      • begin

        public void begin​(org.apache.cxf.service.model.InterfaceInfo intf)
        Overrides:
        begin in class org.apache.cxf.service.ServiceModelVisitor
      • end

        public void end​(org.apache.cxf.service.model.OperationInfo op)
        Overrides:
        end in class org.apache.cxf.service.ServiceModelVisitor
      • begin

        public void begin​(org.apache.cxf.service.model.ServiceInfo service)
        Overrides:
        begin in class org.apache.cxf.service.ServiceModelVisitor
      • end

        public void end​(org.apache.cxf.service.model.FaultInfo fault)
        Overrides:
        end in class org.apache.cxf.service.ServiceModelVisitor
      • end

        public void end​(org.apache.cxf.service.model.InterfaceInfo intf)
        Overrides:
        end in class org.apache.cxf.service.ServiceModelVisitor
      • end

        public void end​(org.apache.cxf.service.model.MessageInfo msg)
        Overrides:
        end in class org.apache.cxf.service.ServiceModelVisitor
      • end

        public void end​(org.apache.cxf.service.model.MessagePartInfo part)
        Overrides:
        end in class org.apache.cxf.service.ServiceModelVisitor
      • end

        public void end​(org.apache.cxf.service.model.ServiceInfo service)
        Overrides:
        end in class org.apache.cxf.service.ServiceModelVisitor
      • begin

        public void begin​(org.apache.cxf.service.model.OperationInfo op)
        Overrides:
        begin in class org.apache.cxf.service.ServiceModelVisitor
      • begin

        public void begin​(org.apache.cxf.service.model.MessageInfo msg)
        Overrides:
        begin in class org.apache.cxf.service.ServiceModelVisitor
      • begin

        public void begin​(org.apache.cxf.service.model.EndpointInfo endpointInfo)
        Overrides:
        begin in class org.apache.cxf.service.ServiceModelVisitor
      • getElementType

        public static org.apache.ws.commons.schema.XmlSchemaType getElementType​(org.apache.cxf.common.xmlschema.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)