Class ParameterImpl

  • All Implemented Interfaces:
    Parameter
    Direct Known Subclasses:
    WrapperParameter

    public class ParameterImpl
    extends Object
    implements Parameter
    runtime Parameter that abstracts the annotated java parameter

    A parameter may be bound to a header, a body, or an attachment. Note that when it's bound to a body, it's bound to a body, it binds to the whole payload.

    Sometimes multiple Java parameters are packed into the payload, in which case the subclass WrapperParameter is used.

    Author:
    Vivek Pandey
    • Constructor Detail

      • ParameterImpl

        public ParameterImpl​(JavaMethodImpl parent,
                             TypeInfo type,
                             jakarta.jws.WebParam.Mode mode,
                             int index)
    • Method Detail

      • getName

        public QName getName()
        Specified by:
        getName in interface Parameter
        Returns:
        Returns the name.
      • getXMLBridge

        public XMLBridge getXMLBridge()
      • getInlinedRepeatedElementBridge

        public XMLBridge getInlinedRepeatedElementBridge()
      • getItemType

        public TypeInfo getItemType()
      • getBridge

        public org.glassfish.jaxb.runtime.api.Bridge getBridge()
        Deprecated.
        Description copied from interface: Parameter
        Gives the Bridge associated with this Parameter
        Specified by:
        getBridge in interface Parameter
      • getBridge

        protected org.glassfish.jaxb.runtime.api.Bridge getBridge​(org.glassfish.jaxb.runtime.api.TypeReference typeRef)
        Deprecated.
      • getTypeReference

        public org.glassfish.jaxb.runtime.api.TypeReference getTypeReference()
        Deprecated.
        use getTypeInfo
        TODO: once the model gets JAXBContext, shouldn't Bridges be made available from model objects?
        Returns:
        Returns the TypeReference associated with this Parameter
      • getTypeInfo

        public TypeInfo getTypeInfo()
      • getMode

        public jakarta.jws.WebParam.Mode getMode()
        Specified by:
        getMode in interface Parameter
        Returns:
        Returns the mode, such as IN, OUT or INOUT.
      • getIndex

        public int getIndex()
        Description copied from interface: Parameter
        Position of a parameter in the method signature. It would be -1 if the parameter is a return.
        Specified by:
        getIndex in interface Parameter
        Returns:
        Returns the index.
      • isReturnValue

        public boolean isReturnValue()
        Description copied from interface: Parameter
        Returns true if this parameter is bound to the return value from the JavaMethod.

        Just the convenience method for getIndex()==-1

        Specified by:
        isReturnValue in interface Parameter
      • setBinding

        public void setBinding​(ParameterBinding binding)
        Parameters:
        binding -
      • isIN

        public boolean isIN()
        Specified by:
        isIN in interface Parameter
        Returns:
        true if the WebParam.Mode associated with the parameter is WebParam.Mode.IN and false otherwise.
      • isOUT

        public boolean isOUT()
        Specified by:
        isOUT in interface Parameter
        Returns:
        true if the WebParam.Mode associated with the parameter is WebParam.Mode.OUT and false otherwise.
      • isINOUT

        public boolean isINOUT()
        Specified by:
        isINOUT in interface Parameter
        Returns:
        true if the WebParam.Mode associated with the parameter is WebParam.Mode.INOUT and false otherwise.
      • getHolderValue

        public Object getHolderValue​(Object obj)
        Gets the holder value if applicable. To be called for inbound client side message.
        Specified by:
        getHolderValue in interface Parameter
        Parameters:
        obj -
        Returns:
        the holder value if applicable.
      • getPartName

        public String getPartName()
        Description copied from interface: Parameter
        Gives the wsdl:part@name value
        Specified by:
        getPartName in interface Parameter
        Returns:
        Value of WebParam.partName() annotation if present, otherwise its the localname of the infoset associated with the parameter
      • setPartName

        public void setPartName​(String partName)