Class OperationCustom


public class OperationCustom extends NestingBase
Operation customization information. This supports direct operation customizations (such as the corresponding request and/or response element name) and also acts as a container for parameter and/or return customizations.
Author:
Dennis M. Sosnoski
  • Field Details

    • s_logger

      private static final Logger s_logger
      Logger for class.
    • s_allowedAttributes

      public static final StringArray s_allowedAttributes
      Enumeration of allowed attribute names
    • m_methodName

      private String m_methodName
    • m_operationName

      private String m_operationName
    • m_requestMessageName

      private String m_requestMessageName
    • m_requestWrapperName

      private String m_requestWrapperName
    • m_responseMessageName

      private String m_responseMessageName
    • m_responseWrapperName

      private String m_responseWrapperName
    • m_soapAction

      private String m_soapAction
    • m_documentation

      private List m_documentation
    • m_requireds

      private String[] m_requireds
    • m_optionals

      private String[] m_optionals
    • m_parameters

      private final ArrayList m_parameters
    • m_return

      private ValueCustom m_return
    • m_throws

      private final ArrayList m_throws
  • Constructor Details

    • OperationCustom

      OperationCustom(NestingBase parent, String name)
      Constructor.
      Parameters:
      parent -
      name - method name
  • Method Details

    • getWsdlNamespace

      public String getWsdlNamespace()
      Get the namespace for WSDL definitions of this service.
      Specified by:
      getWsdlNamespace in class NestingBase
      Returns:
      WSDL namespace
    • getMethodName

      public String getMethodName()
      Get method name.
      Returns:
      name
    • getOperationName

      public String getOperationName()
      Get the operation name.
      Returns:
      operation name
    • getRequestMessageName

      public String getRequestMessageName()
      Get request message name.
      Returns:
      name
    • getRequestWrapperName

      public String getRequestWrapperName()
      Get request wrapper element name.
      Returns:
      name
    • getResponseMessageName

      public String getResponseMessageName()
      Get response message name.
      Returns:
      name
    • getResponseWrapperName

      public String getResponseWrapperName()
      Get response wrapper name.
      Returns:
      name
    • getReturn

      public ValueCustom getReturn()
      Get return value.
      Returns:
      return
    • getSoapAction

      public String getSoapAction()
      Get SOAPAction.
      Returns:
      soapAction
    • getDocumentation

      public List getDocumentation()
      Get operation documentation.
      Returns:
      list of documentation nodes (null if none)
    • getParameters

      public ArrayList getParameters()
      Get list of children.
      Returns:
      list
    • getThrows

      public ArrayList getThrows()
      Get list of throws customizations.
      Returns:
      list
    • addChild

      protected void addChild(CustomBase child)
      Add child.
      Parameters:
      child -
    • factory

      private static OperationCustom factory(IUnmarshallingContext ictx) throws JiBXException
      Unmarshalling factory. This gets the containing element and the name so that the standard constructor can be used.
      Parameters:
      ictx -
      Returns:
      created instance
      Throws:
      JiBXException
    • isCollection

      private boolean isCollection(String type, IClassLocator icl)
      Check if type is a collection type (specifically collection, not array).
      Parameters:
      type -
      Returns:
      item type, null if not a collection type
    • parameterType

      private String parameterType(SignatureParser parse)
      Parse parameter type.
      Parameters:
      parse -
      Returns:
      parameter type
    • checkRequired

      private static Boolean checkRequired(String name, Set reqset, Set optset)
      Check if a particular value is required or optional.
      Parameters:
      name -
      reqset -
      optset -
      Returns:
      TRUE if required, FALSE if optional, null if unknown
    • apply

      public void apply(IClassItem method, IClassLocator icl, IDocumentFormatter fmt)
      Apply customizations to method to fill out parameter and return information.
      Parameters:
      method -
      icl -
      fmt -