public class ParameterImpl extends Object implements 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.
Modifier and Type | Field and Description |
---|---|
(package private) TypeInfo |
itemTypeInfo |
(package private) WrapperParameter |
wrapper |
Constructor and Description |
---|
ParameterImpl(JavaMethodImpl parent,
TypeInfo type,
javax.jws.WebParam.Mode mode,
int index) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
fillTypes(List<TypeInfo> types) |
ParameterBinding |
getBinding()
Returns the binding associated with the parameter.
|
com.sun.xml.bind.api.Bridge |
getBridge()
Deprecated.
|
protected com.sun.xml.bind.api.Bridge |
getBridge(com.sun.xml.bind.api.TypeReference typeRef)
Deprecated.
|
Object |
getHolderValue(Object obj)
Gets the holder value if applicable.
|
ParameterBinding |
getInBinding()
Returns the
ParameterBinding associated with the IN mode |
int |
getIndex()
Position of a parameter in the method signature.
|
XMLBridge |
getInlinedRepeatedElementBridge() |
TypeInfo |
getItemType() |
javax.jws.WebParam.Mode |
getMode() |
QName |
getName() |
ParameterBinding |
getOutBinding()
Returns the
ParameterBinding associated with the OUT mode |
AbstractSEIModelImpl |
getOwner()
Gets the root
SEIModel that owns this model. |
JavaMethod |
getParent()
Gets the parent
JavaMethod to which this parameter belongs. |
String |
getPartName()
Gives the wsdl:part@name value
|
TypeInfo |
getTypeInfo() |
com.sun.xml.bind.api.TypeReference |
getTypeReference()
Deprecated.
use getTypeInfo
|
XMLBridge |
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 the
JavaMethod . |
boolean |
isWrapperStyle() |
void |
setBinding(ParameterBinding binding) |
void |
setInBinding(ParameterBinding binding) |
void |
setOutBinding(ParameterBinding binding) |
void |
setPartName(String partName) |
(package private) void |
setTypeReference(com.sun.xml.bind.api.TypeReference type)
Deprecated.
|
WrapperParameter wrapper
TypeInfo itemTypeInfo
public ParameterImpl(JavaMethodImpl parent, TypeInfo type, javax.jws.WebParam.Mode mode, int index)
public AbstractSEIModelImpl getOwner()
Parameter
SEIModel
that owns this model.public JavaMethod getParent()
Parameter
JavaMethod
to which this parameter belongs.public QName getName()
public XMLBridge getXMLBridge()
public XMLBridge getInlinedRepeatedElementBridge()
public TypeInfo getItemType()
public com.sun.xml.bind.api.Bridge getBridge()
Parameter
Bridge
associated with this Parameterprotected com.sun.xml.bind.api.Bridge getBridge(com.sun.xml.bind.api.TypeReference typeRef)
public com.sun.xml.bind.api.TypeReference getTypeReference()
Bridge
s
be made available from model objects?public TypeInfo getTypeInfo()
void setTypeReference(com.sun.xml.bind.api.TypeReference type)
AbstractSEIModelImpl#applyParameterBinding(com.sun.xml.ws.model.wsdl.WSDLBoundPortTypeImpl)
public javax.jws.WebParam.Mode getMode()
public int getIndex()
Parameter
public boolean isWrapperStyle()
isWrapperStyle
in interface Parameter
WrapperParameter
.public boolean isReturnValue()
Parameter
JavaMethod
.
Just the convenience method for getIndex()==-1
isReturnValue
in interface Parameter
public ParameterBinding getBinding()
Parameter
Parameter.getInBinding()
, for OUT parameter the binding will be same as
Parameter.getOutBinding()
and for INOUT parameter the binding will be same as calling
Parameter.getInBinding()
getBinding
in interface Parameter
public void setBinding(ParameterBinding binding)
binding
- public void setInBinding(ParameterBinding binding)
public void setOutBinding(ParameterBinding binding)
public ParameterBinding getInBinding()
Parameter
ParameterBinding
associated with the IN modegetInBinding
in interface Parameter
public ParameterBinding getOutBinding()
Parameter
ParameterBinding
associated with the OUT modegetOutBinding
in interface Parameter
public boolean isIN()
public boolean isOUT()
public boolean isINOUT()
public boolean isResponse()
JavaMethodImpl.getResponseParameters()
is guaranteed to have
at most one such ParameterImpl
. Note that there coule be none,
in which case the method returns void.
isResponse
in interface Parameter
public Object getHolderValue(Object obj)
getHolderValue
in interface Parameter
obj
- public String getPartName()
Parameter
getPartName
in interface Parameter
WebParam.partName()
annotation if present,
otherwise its the localname of the infoset associated with the parameterpublic void setPartName(String partName)
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.