java.lang.Object
com.sun.xml.ws.model.ParameterImpl
- All Implemented Interfaces:
Parameter
- Direct Known Subclasses:
WrapperParameter
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 Summary
ConstructorDescriptionParameterImpl
(JavaMethodImpl parent, TypeInfo type, jakarta.jws.WebParam.Mode mode, int index) -
Method Summary
Modifier and TypeMethodDescriptionReturns the binding associated with the parameter.getHolderValue
(Object obj) Gets the holder value if applicable.Returns theParameterBinding
associated with the IN modeint
getIndex()
Position of a parameter in the method signature.jakarta.jws.WebParam.Mode
getMode()
getName()
Returns theParameterBinding
associated with the OUT modegetOwner()
Gets the rootSEIModel
that owns this model.Gets the parentJavaMethod
to which this parameter belongs.Gives the wsdl:part@name valueorg.glassfish.jaxb.runtime.api.TypeReference
Deprecated.use getTypeInfoboolean
isIN()
boolean
isINOUT()
boolean
isOUT()
boolean
If true, this parameter maps to the return value of a method invocation.boolean
Returns true if this parameter is bound to the return value from theJavaMethod
.boolean
void
setBinding
(ParameterBinding binding) void
setInBinding
(ParameterBinding binding) void
setOutBinding
(ParameterBinding binding) void
setPartName
(String partName)
-
Constructor Details
-
ParameterImpl
public ParameterImpl(JavaMethodImpl parent, TypeInfo type, jakarta.jws.WebParam.Mode mode, int index)
-
-
Method Details
-
getOwner
Description copied from interface:Parameter
Gets the rootSEIModel
that owns this model. -
getParent
Description copied from interface:Parameter
Gets the parentJavaMethod
to which this parameter belongs. -
getName
-
getXMLBridge
-
getInlinedRepeatedElementBridge
-
getItemType
-
getTypeReference
Deprecated.use getTypeInfoTODO: once the model gets JAXBContext, shouldn'tBridge
s be made available from model objects?- Returns:
- Returns the TypeReference associated with this Parameter
-
getTypeInfo
-
getMode
public jakarta.jws.WebParam.Mode getMode() -
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. -
isWrapperStyle
public boolean isWrapperStyle()- Specified by:
isWrapperStyle
in interfaceParameter
- Returns:
- true if
this instanceof
WrapperParameter
.
-
isReturnValue
public boolean isReturnValue()Description copied from interface:Parameter
Returns true if this parameter is bound to the return value from theJavaMethod
.Just the convenience method for
getIndex()==-1
- Specified by:
isReturnValue
in interfaceParameter
-
getBinding
Description copied from interface:Parameter
Returns the binding associated with the parameter. For IN parameter the binding will be same asParameter.getInBinding()
, for OUT parameter the binding will be same asParameter.getOutBinding()
and for INOUT parameter the binding will be same as callingParameter.getInBinding()
- Specified by:
getBinding
in interfaceParameter
- Returns:
- the Binding for this Parameter
-
setBinding
-
setInBinding
-
setOutBinding
-
getInBinding
Description copied from interface:Parameter
Returns theParameterBinding
associated with the IN mode- Specified by:
getInBinding
in interfaceParameter
- Returns:
- the binding
-
getOutBinding
Description copied from interface:Parameter
Returns theParameterBinding
associated with the OUT mode- Specified by:
getOutBinding
in interfaceParameter
- Returns:
- the binding
-
isIN
public boolean isIN() -
isOUT
public boolean isOUT() -
isINOUT
public boolean isINOUT() -
isResponse
public boolean isResponse()If true, this parameter maps to the return value of a method invocation.JavaMethodImpl.getResponseParameters()
is guaranteed to have at most one suchParameterImpl
. Note that there coule be none, in which case the method returnsvoid
.- Specified by:
isResponse
in interfaceParameter
-
getHolderValue
Gets the holder value if applicable. To be called for inbound client side message.- Specified by:
getHolderValue
in interfaceParameter
- Returns:
- the holder value if applicable.
-
getPartName
Description copied from interface:Parameter
Gives the wsdl:part@name value- Specified by:
getPartName
in interfaceParameter
- Returns:
- Value of
WebParam.partName()
annotation if present, otherwise its the localname of the infoset associated with the parameter
-
setPartName
-