Class WsdlTypes

  • All Implemented Interfaces:
    Serializable

    public final class WsdlTypes
    extends Object
    implements Serializable
    WsdlTypes provides utilities for getting information about the <types> section of the WSDL.
    See Also:
    Serialized Form
    • Constructor Detail

      • WsdlTypes

        protected WsdlTypes​(javax.wsdl.Definition wsdlDefinition)
        Create a new for WsdlTypes instance for the specified WSDL definition.
        Parameters:
        wsdlDefinition - The WSDL definition.
    • Method Detail

      • findNamedElement

        protected Element findNamedElement​(QName elementName)
                                    throws org.pentaho.di.core.exception.KettleStepException
        Find a named <element> in the types section of the WSDL.
        Parameters:
        elementName - Name of element to find.
        Returns:
        The element node.
        Throws:
        org.pentaho.di.core.exception.KettleStepException - If schema or element in schema can't be found for the given element name
      • findNamedType

        protected Element findNamedType​(QName typeName)
        Find a named <complexType> or <simpleType> in the types section of the WSDL.
        Parameters:
        typeName - Name of the type to find.
        Returns:
        null if type not found.
      • getNamedComplexTypes

        protected WsdlComplexTypes getNamedComplexTypes()
        Get the map of named complex types defined in the WSDL.
        Returns:
        Wsdl's named complex types.
      • getTargetNamespace

        protected String getTargetNamespace()
        Get the target namespace of the wsdl.
        Returns:
        String contianing the target namespace.
      • getTypeQName

        protected QName getTypeQName​(String type)
        Get the type qname for the type parameter. Resolve namespace references if present, if a namespace prefix is not found the WSDL's target namespace will be used.
        Parameters:
        type - Name of type.
        Returns:
        A QName for the type name.
      • getSchemas

        protected List<javax.wsdl.extensions.ExtensibilityElement> getSchemas()
        Return a list of of all schemas defined by the WSDL definition.
        Returns:
        A list of javax.wsdl.extension.schema.Schema elements.
      • isElementFormQualified

        public boolean isElementFormQualified​(String namespaceURI)
        Determine if the namespace URI is element form qualifed.
        Parameters:
        namespaceURI - Namespace URI string.
        Returns:
        true If element form is qualified.