|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.model.ParameterImpl
public class ParameterImpl
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.
| Constructor Summary | |
|---|---|
ParameterImpl(JavaMethodImpl parent,
TypeReference type,
javax.jws.WebParam.Mode mode,
int index)
|
|
| Method Summary | |
|---|---|
Object |
createHolderValue(Object value)
Creates a holder if applicable else gives the object as it is. |
(package private) void |
fillTypes(List<TypeReference> types)
|
ParameterBinding |
getBinding()
Returns the binding associated with the parameter. |
Bridge |
getBridge()
Gives the Bridge associated with this Parameter |
protected Bridge |
getBridge(TypeReference typeRef)
|
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. |
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 |
TypeReference |
getTypeReference()
TODO: once the model gets JAXBContext, shouldn't Bridges
be made available from model objects? |
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)
|
static void |
setHolderValue(Object obj,
Object value)
|
void |
setInBinding(ParameterBinding binding)
|
void |
setOutBinding(ParameterBinding binding)
|
void |
setPartName(String partName)
|
(package private) void |
setTypeReference(TypeReference type)
Sometimes we need to overwrite the typeReferenc, such as during patching for rpclit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterImpl(JavaMethodImpl parent,
TypeReference type,
javax.jws.WebParam.Mode mode,
int index)
| Method Detail |
|---|
public AbstractSEIModelImpl getOwner()
ParameterSEIModel that owns this model.
getOwner in interface Parameterpublic JavaMethod getParent()
ParameterJavaMethod to which this parameter belongs.
getParent in interface Parameterpublic QName getName()
getName in interface Parameterpublic Bridge getBridge()
ParameterBridge associated with this Parameter
getBridge in interface Parameterprotected Bridge getBridge(TypeReference typeRef)
public TypeReference getTypeReference()
Bridges
be made available from model objects?
void setTypeReference(TypeReference type)
AbstractSEIModelImpl.applyParameterBinding(com.sun.xml.ws.model.wsdl.WSDLBoundPortTypeImpl)public javax.jws.WebParam.Mode getMode()
getMode in interface Parameterpublic int getIndex()
Parameter
getIndex in interface Parameterpublic boolean isWrapperStyle()
isWrapperStyle in interface ParameterWrapperParameter.public boolean isReturnValue()
ParameterJavaMethod.
Just the convenience method for getIndex()==-1
isReturnValue in interface Parameterpublic ParameterBinding getBinding()
ParameterParameter.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 Parameterpublic void setBinding(ParameterBinding binding)
binding - public void setInBinding(ParameterBinding binding)
public void setOutBinding(ParameterBinding binding)
public ParameterBinding getInBinding()
ParameterParameterBinding associated with the IN mode
getInBinding in interface Parameterpublic ParameterBinding getOutBinding()
ParameterParameterBinding associated with the OUT mode
getOutBinding in interface Parameterpublic boolean isIN()
isIN in interface ParameterWebParam.Mode associated with the parameter is WebParam.Mode.IN and false otherwise.public boolean isOUT()
isOUT in interface ParameterWebParam.Mode associated with the parameter is WebParam.Mode.OUT and false otherwise.public boolean isINOUT()
isINOUT in interface ParameterWebParam.Mode associated with the parameter is WebParam.Mode.INOUT and false otherwise.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 Parameterpublic Object createHolderValue(Object value)
value -
public Object getHolderValue(Object obj)
getHolderValue in interface Parameterobj -
public static void setHolderValue(Object obj,
Object value)
public String getPartName()
Parameter
getPartName in interface ParameterWebParam.partName() annotation if present,
otherwise its the localname of the infoset associated with the parameterpublic void setPartName(String partName)
void fillTypes(List<TypeReference> types)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||