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
WrapperParameteris 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 ParameterBindinggetBinding()Returns the binding associated with the parameter.org.glassfish.jaxb.runtime.api.BridgegetBridge()Deprecated.protected org.glassfish.jaxb.runtime.api.BridgegetBridge(org.glassfish.jaxb.runtime.api.TypeReference typeRef)Deprecated.ObjectgetHolderValue(Object obj)Gets the holder value if applicable.ParameterBindinggetInBinding()Returns theParameterBindingassociated with the IN modeintgetIndex()Position of a parameter in the method signature.XMLBridgegetInlinedRepeatedElementBridge()TypeInfogetItemType()jakarta.jws.WebParam.ModegetMode()QNamegetName()ParameterBindinggetOutBinding()Returns theParameterBindingassociated with the OUT modeAbstractSEIModelImplgetOwner()Gets the rootSEIModelthat owns this model.JavaMethodgetParent()Gets the parentJavaMethodto which this parameter belongs.StringgetPartName()Gives the wsdl:part@name valueTypeInfogetTypeInfo()org.glassfish.jaxb.runtime.api.TypeReferencegetTypeReference()Deprecated.use getTypeInfoXMLBridgegetXMLBridge()booleanisIN()booleanisINOUT()booleanisOUT()booleanisResponse()If true, this parameter maps to the return value of a method invocation.booleanisReturnValue()Returns true if this parameter is bound to the return value from theJavaMethod.booleanisWrapperStyle()voidsetBinding(ParameterBinding binding)voidsetInBinding(ParameterBinding binding)voidsetOutBinding(ParameterBinding binding)voidsetPartName(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:ParameterGets the rootSEIModelthat owns this model.
-
getParent
public JavaMethod getParent()
Description copied from interface:ParameterGets the parentJavaMethodto 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:ParameterGives theBridgeassociated 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'tBridges 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:ParameterPosition of a parameter in the method signature. It would be -1 if the parameter is a return.
-
isWrapperStyle
public boolean isWrapperStyle()
- Specified by:
isWrapperStylein interfaceParameter- Returns:
- true if
this instanceofWrapperParameter.
-
isReturnValue
public boolean isReturnValue()
Description copied from interface:ParameterReturns true if this parameter is bound to the return value from theJavaMethod.Just the convenience method for
getIndex()==-1- Specified by:
isReturnValuein interfaceParameter
-
getBinding
public ParameterBinding getBinding()
Description copied from interface:ParameterReturns 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:
getBindingin 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:ParameterReturns theParameterBindingassociated with the IN mode- Specified by:
getInBindingin interfaceParameter- Returns:
- the binding
-
getOutBinding
public ParameterBinding getOutBinding()
Description copied from interface:ParameterReturns theParameterBindingassociated with the OUT mode- Specified by:
getOutBindingin 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:
isResponsein interfaceParameter
-
getHolderValue
public Object getHolderValue(Object obj)
Gets the holder value if applicable. To be called for inbound client side message.- Specified by:
getHolderValuein interfaceParameter- Parameters:
obj-- Returns:
- the holder value if applicable.
-
getPartName
public String getPartName()
Description copied from interface:ParameterGives the wsdl:part@name value- Specified by:
getPartNamein 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)
-
-