Package com.sun.xml.ws.model
Class ParameterImpl
- java.lang.Object
-
- com.sun.xml.ws.model.ParameterImpl
-
- All Implemented Interfaces:
Parameter
- Direct Known Subclasses:
WrapperParameter
public class ParameterImpl extends Object implements Parameter
runtime Parameter that abstracts the annotated java parameterA 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
Constructors Constructor Description ParameterImpl(JavaMethodImpl parent, TypeInfo type, jakarta.jws.WebParam.Mode mode, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ParameterBinding
getBinding()
Returns the binding associated with the parameter.org.glassfish.jaxb.runtime.api.Bridge
getBridge()
Deprecated.protected org.glassfish.jaxb.runtime.api.Bridge
getBridge(org.glassfish.jaxb.runtime.api.TypeReference typeRef)
Deprecated.Object
getHolderValue(Object obj)
Gets the holder value if applicable.ParameterBinding
getInBinding()
Returns theParameterBinding
associated with the IN modeint
getIndex()
Position of a parameter in the method signature.XMLBridge
getInlinedRepeatedElementBridge()
TypeInfo
getItemType()
jakarta.jws.WebParam.Mode
getMode()
QName
getName()
ParameterBinding
getOutBinding()
Returns theParameterBinding
associated with the OUT modeAbstractSEIModelImpl
getOwner()
Gets the rootSEIModel
that owns this model.JavaMethod
getParent()
Gets the parentJavaMethod
to which this parameter belongs.String
getPartName()
Gives the wsdl:part@name valueTypeInfo
getTypeInfo()
org.glassfish.jaxb.runtime.api.TypeReference
getTypeReference()
Deprecated.use getTypeInfoXMLBridge
getXMLBridge()
boolean
isIN()
boolean
isINOUT()
boolean
isOUT()
boolean
isResponse()
If true, this parameter maps to the return value of a method invocation.boolean
isReturnValue()
Returns true if this parameter is bound to the return value from theJavaMethod
.boolean
isWrapperStyle()
void
setBinding(ParameterBinding binding)
void
setInBinding(ParameterBinding binding)
void
setOutBinding(ParameterBinding binding)
void
setPartName(String partName)
-
-
-
Constructor Detail
-
ParameterImpl
public ParameterImpl(JavaMethodImpl parent, TypeInfo type, jakarta.jws.WebParam.Mode mode, int index)
-
-
Method Detail
-
getOwner
public AbstractSEIModelImpl getOwner()
Description copied from interface:Parameter
Gets the rootSEIModel
that owns this model.
-
getParent
public JavaMethod getParent()
Description copied from interface:Parameter
Gets the parentJavaMethod
to which this parameter belongs.
-
getName
public QName getName()
-
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 theBridge
associated with this 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 getTypeInfoTODO: once the model gets JAXBContext, shouldn'tBridge
s 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()
-
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
public ParameterBinding 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
public void setBinding(ParameterBinding binding)
- Parameters:
binding
-
-
setInBinding
public void setInBinding(ParameterBinding binding)
-
setOutBinding
public void setOutBinding(ParameterBinding binding)
-
getInBinding
public ParameterBinding getInBinding()
Description copied from interface:Parameter
Returns theParameterBinding
associated with the IN mode- Specified by:
getInBinding
in interfaceParameter
- Returns:
- the binding
-
getOutBinding
public ParameterBinding 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
public Object getHolderValue(Object obj)
Gets the holder value if applicable. To be called for inbound client side message.- Specified by:
getHolderValue
in interfaceParameter
- 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 interfaceParameter
- 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)
-
-